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

What is garbage collector?

618


What is the symbol for space?

558


How do you reverse sort in java?

500


What is the difference between serial and throughput garbage collector?

575


What is set and get methods in java?

539






How to optimize the javac output?

594


Explain the access modifiers for a class, method and variables?

650


What are peerless components?

616


Can list have duplicates in java?

519


What does jenkins do?

484


Write a program to print the pattern given below

493


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2132


Tell some latest versions in JAVA related areas?

556


What is executor memory?

519


Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain

1430