What are passing parameters?
No Answer is Posted For this Question
Be the First to Post Answer
What is the purpose of using javap?
What is the life cycle of Servlet?
How to sort an unsorted array in java?
List any five features of java?
What are the escape sequences in java?
What are the different http methods?
what is difference between set and list in collection?
Is string passed by reference in java?
What is the difference between import java.util.date and java .util?
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?
Can you explain inner class.
What do heavy weight components mean in java programming?