-
Can an object be garbage collected while it is still reachable
A reachable object cannot be garbage collected. Only unreachable objects may begarbage collected..
-
Is &&= a valid Java operator
No, it is not.
-
-
What does the "final" keyword mean in front of a variable? A method? A class?
FINAL for a variable : value is constantFINAL for a method : cannot be overriddenFINAL for a class : cannot be derived
-
-
-
-
-
-
-
-
What is the Vector class
The Vector class provides the capability to implement a growable array of objects
-
Why do you create interfaces, and when MUST you use one?
You would create interfaces when you have two or more functionalities talking to each other. Doing it this way help you in creating a protocol between the parties involved.
-
Why Java is not 100 % pure OOPS
Answered by Hari on 2005-05-09 03:02:11: There are so many examples behind this reason. a. Code written using AWT and compiled on windows machine will not run on Unix, since Windows is a graphics rendered environment and unix is not, so will have to provide some XManger to render the Graphics. b. depends on endians, if this is not supported by OS then the class file will not run.
-
-
Can a Byte object be cast to a double value
Answered by Scott on 2005-05-12 09:24:14: Byte b = new Byte((byte)5); double d = b.byteValue(); System.out.println( "The double value is: " + d );
-
What it the root class for all Java classes
Answered by Scott on 2005-05-12 09:26:34: The Object class.
-
-
-
Java Interview Questions
Ans