What is garbage collection in Java, and how can it be used ?
Answer Posted / subramanyam
IF an object is created for an class that object is not
used than the memory which is allocated to that objected to
be wasted ,the wastage of memory is called garbage
collection
| Is This Answer Correct ? | 3 Yes | 12 No |
Post New Answer View All Answers
What is the difference between java applets and applications?
Can we override private method?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
Give the difference between the println method and sqrt method?
Can we change the value of static variable?
What is double data type?
Can we have two main methods in a java class?
Why destructor is not used in java?
Can we assign integer value to char in java?
Can we write any code after throw statement?
Can we define private and protected modifiers for the members in interfaces?
What is Java Shutdown Hook?
What is the formula to calculate percentage?
What types of index data structures can you have in java?
What is the difference between exception and error in java?