|
Technical Sample Questions : C |
C++ |
Oracle |
Java | Unix |
Operating Systems |
Data Structure
Java Sample Questions ›› Java questions
Technical General Java Sample Questions
- Can a abstract method have the static qualifier?
Answer: No
- What are the different types of qualifier and What is the default qualifier?
Answer: public, protected, private, package (default)
- What is the super class of Hashtable?
Answer: Dictionary
- What is a lightweight component?
Answer: Lightweight components are the one which doesn't go with the native call to obtain the graphical units.They share their parent component graphical units to render them.Example, Swing components
- What is a heavyweight component?
Answer: For every paint call, there will be a native call to get the graphical units.Example, AWT.
- What is an applet?
Answer: Applet is a program which can get downloaded into a client environment and start executing there.
- What do you mean by a Classloader?
Answer: Classloader is the one which loads the classes into the JVM.
- What are the implicit packages that need not get imported into a class file?
Answer: java.lang
- What is the difference between lightweight and heavyweight component?
Answer: Lightweight components reuses its parents graphical units.Heavyweight components go with the native graphical unit for every component.Lightweight components are faster than the heavyweight components.
- What are the ways in which you can instantiate a thread?
Answer: Using Thread class By implementing the Runnable interface and giving that handle to the Thread class.
Next »
Java Sample Question Number:
1-10|
11-20|
21-30|
31-40|
41-50|
51-60|
61-70|
71-80|
81-90|
91-100|
101-110|
111-120|
121-130|
131-140|
141-150|
151-160|
161-170|
171-180|
181-190|
191-200|
201-210|
211-220|
221-230|
231-240|
241-250|
251-260|
261-270|
271-280|
281-290|
291-300|
301-310|
311-320|
321-330
|
|