What is the difference between Array and Hash Table?
No Answer is Posted For this Question
Be the First to Post Answer
What’s the difference between constructors and other methods?
What is singleton class and how can we make a class singleton?
What is the purpose of using break in each case of switch statement?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
What is qualitative variable?
what is the Arraylist limit (maximum) by default ?
13 Answers Fidelity, PlanetSoft, Wipro,
How we can generate random numbers in java?
What is the use of StringTokenizer class?
Is multiple inheritance allowed in Java? Why ?
Define nashorn in java8.
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 node a data type in java?