-
Create Object Using Clone
Give an example of using clone to create an object.
-
-
Downcasting - Superclass Reference
Explain what is superclass reference to subclass object? Why do we go for downcasting?
-
-
Class hierarchy of HashMap is as follows
"HashMap extends AbstractMap implements Map"
When AbstractMap implements Map interface and AbstractMap is extended by HashMap, what is the use of again implementing Map interface in the declaration of HashMap?.">Class hierarchy of AbstractMap is as follows "AbstractMap implements Map"Class hierarchy of HashMap is as follows "HashMap extends AbstractMap implements Map"When AbstractMap implements Map interface and AbstractMap is extended by HashMap, what is the use of again implementing Map interface in the declaration of HashMap?.
-
-
-
-
Directories usage information.
Explain the purpose of 'JDK','JRE',LIB' directories.
-
-
-
What is the difference between Enumeration and Iterator?. When i can use Enumeration and when i can use iterator?. Can any one tell me the situation that only Enumeration could able to solve that problem and vice versa.
In Enumeration we cant modify the elements. where as in iterator we can modify the elements
-
More than One Class
If more than one class is present in one Java file then what will be the java file name?
-
Find the Output
class A{ public static void main(String[] a){ System.out.print(String.valueOf(1)+String.valueOf(2)); String s1="s1"; String s2=s1.toString(); System.out.print(","+(s1==s2)); }}
-
-
Garbage Collector
How does garbage collector decide which objects are to be removed? Can garbage collector be forced?
-
Why was Java Created?
PlatForm Indepentdent ,security,Garbage Collection.
-
Overloading Performance
If Overloading is not going to help to increase performance then why we need to use same name for different methods?
-
-
Realtime J2EE Project Code Standard
What are the code standard used in J2EE project in real time?
Core Java Interview Questions
Ans