What is garbage collection in Java, and how can it be used ?

Answer Posted / nitin kumar

Garbage collection is a system level thread that tracks each
memory allocation. During the idle cycles in the JVM, the
garbage collection thread check for and frees memory that
can be freed. It happen automatically during the lifetime of
a Java Technology program.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define iterator and methods in iterator?

547


How many bits is a double?

534


What are the three parts of a lambda expression? What is the type of lambda expression?

568


Which is the best sorting technique in java?

527


Is there a jre for java 11?

558






What is bean? Where it can be used?

607


What are keywords give examples?

583


Which is better singleton or static class?

509


How many static init can you have?

684


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

767


What do you understand by weak reference?

560


What is data type modifier?

530


What does exclamation mean in java?

575


Why deletion in linkedlist is fast than arraylist?

537


What is a variable declaration?

528