-
How many times may an object's finalize() method be invoked by thegarbage collector
An object's finalize() method may only be invoked once by the garbage collector.
-
Can a double value be cast to a byte
Yes, a double value can be cast to a byte.
-
-
What modifiers can be used with a local inner class
A local inner class may be final or abstract.
-
Can try statements be nested
Try statements may be tested.
-
How does a try statement determine which catch clause should be used to handle anexception
When an exception is thrown within the body of a try statement, the catch clauses of thetry statement are examined in the order in which they appear. The first catch clause that iscapable of handling the exception is executed. The remaining catch clauses are ignored.
-
-
-
-
-
What is the difference between overloading and overriding
Answered by Scott on 2005-05-12 09:44:53: Overloading: The same method name with a different signature (generally input argument list) written in the same class. Overriding: The identical method signature from a parent (super) class written in a subclass and modification of the method body occurs.
-
-
-
-
-
-
-
-
-
Java Interview Questions
Ans