|
Java Basic Sample Interview Questions - 3 |
|
|
- Can a abstract method have the static qualifier? - No
- What are the different types of qualifier and what is the default qualifier? - public, protected, private, package (default)
- What is the super class of Hashtable? - Dictionary
- What is a lightweight component? - 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? - For every paint call, there will be a native call to get the graphical units. Example, AWT.
- What is an applet? - Applet is a program which can get downloaded into a client environment and start executing there.
- What do you mean by a Classloader? - 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? - java.lang
- What is the difference between lightweight and heavyweight component? - Lightweight components reuses its parents graphical units. Heavyweight components goes 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? - Using Thread class By implementing the Runnable interface and giving that handle to the Thread class.
|