What is the null?
No Answer is Posted For this Question
Be the First to Post Answer
What are event-delegation model and event-inheritance model? Which is best?
Difference between Hash Table and Hash Map?
What are anonymous inner classes?
what is java
Which is easier netbeans or eclipse?
5 What is Java exception handling?
What is the use of a copy constructor?
Can I learn java without any programming experience?
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?
What is a boolean flag in java?
What is bigger kb or mb?
How many types of string data types are there?