-
Interface and Abstract Class Usage
When will you use an interface and abstract class?
-
Objects are sometimes referred to as __________ of a class
A) InhertienceB) InstancesC) InterfacesD) Inhibitors
-
Object Class
When you declare a class, why does it automatically extends to object class? Give 2 reasons.
-
Double Value
What happens when you add a double value to a String?
-
Are there any other 'marker' interfaces?
java.rmi.Remotejava.util.EventListener
-
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.
-
How is it possible for two String objects with identical values not to be equal under the == operator?
The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located indifferent areas of memory.
-
-
-
Primitive Types
What happens when you add a primitive type (e.g. double) value to a collection?
-
-
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.
-
-
-
-
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.
-
-
-
-
Java Interview Questions
Ans