| Other Core Java Interview Questions |
|| Asked @
|Nested classes VS Inner classes?
|Name the types of mouse event listeners ?
|What are null interfaces? Give some examples?
|how can be object class inherited to all class in a program
when java does not support multiple inheritance??
|How are Observer and Observable used?
|what is difference between Exception and Error?
|Hi Friends, can u give code to convert ArrayList to
HashMap and HashMap to ArrayList.
|public class Garbage
public void add()
public static void main(String args)
Garbage obj=new Garbage();
Above is a code in java used for garbage collection. object
obj has been created for the class Garbage and system.gc
method is called. Then using that object add method is
called.System.gc method if called the obj should be garbage
|String is an immutable object.
Then how can the following code be justified.
String s1 = ?ABC?;
String s1 = s1+?XYZ?;
The output is ABCXYZ, which is the value of s1 ?
|what is default layout of JFrame class?
|when i write
in one program(application) and
in another application
on the same jvm will both objects s2,s2 will refer to same
memory location where "java" is stored
in string pool.
|How are this() and super() used with constructors?
|For more Core Java Interview Questions Click Here |