-
Volatile Modifier
What is volatile modifier in Java? How it is useful?
-
Anonymous Class
What is anonymous class? What is its use in Java?
-
What is the role of extends in java?
Explain with an example how do you use extends in java
-
What is the difference between a static and a non-static inner class
A non-static inner class may have object instances that are associated with instances ofthe class's outer class. A static inner class does not have any object instances.
-
What is the difference between a while statement and a do statement
A while statement checks at the beginning of a loop to see whether the next loop iterationshould occur. A do statement checks at the end of a loop to see whether the next iterationof a loop should occur. The do statement will always execute the body of a loop at leastonce.
-
-
-
-
-
-
What is the difference between Abstract class and Interface
Answered by Scott on 2005-05-12 10:03:06: An abstract class can contain non-abstract methods which do not have to be overridden in the subclass. There is no difference between a fully abstract class (all methods declared as abstract and all fields are public static final) and an interface.
-
-
-
-
What is the difference between a MenuItem and a CheckboxMenuItem
The CheckboxMenuItem class extends the MenuItem class to support a menu item thatmay be checked or unchecked.
-
-
Primitive Types
What happens when you add a primitive type (e.g. double) value to a collection?
-
-
-
What is the purpose of finalization
The purpose of finalization is to give an unreachable object the opportunity to performany cleanup processing before the object is garbage collected.
Java Interview Questions
Ans