What is collection sort in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is java abstraction with example?
List any five features of java?
What is variable declaration and definition?
What is the difference between the program and the process?
What is a boolean used for?
What is boolean used for?
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?
Is 0 an even number?
What are the access modifiers in java?
Define packages in java?
What is the use of bin and lib in JDK?
difference between jsp and java script?