What are the advantages of inner classes?
No Answer is Posted For this Question
Be the First to Post Answer
Is java a utf 8 string?
How hashset works internally in java?
What are the java ide's? Explain
Is string a keyword in java?
How big is a boolean?
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } 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 collected?
public class Test { public static void main(String ar[]) { Integer a = 10; Integer b =10; Integer c = 145; Integer d = 145; System.out.println(a==b); System.out.println(c==d); } }
if u open login & logout ,how can udisplay the timelogin & logout members ?
What is a class variable?
what is mean by method signature?
Difference between linkedlist and arraylist.
Explain the difference between a Thread and a Process.