What is a file pointer?
What do you mean by hashing?
Can an integer be a string?
Explain Global variables in Packages?
What is difference between hashset and hashmap?
What is the maximum size of array in java?
What is bean? Where it can be used?
How many bits does a boolean take?
Is hashset ordered java?
What is the difference between Java1.4 and Java1.5
What loop means?
Can there be an abstract class with no abstract methods in it?
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?