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

Answer Posted / brijesh yadav

Garbage Collection is a form of automatic memory
management. The garbage collector or collector attempts to
reclaim the memory used by objects that will never be
accessed again by the application or mutator.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between length and length() method in java?

635


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

583


What is replaceall in java?

538


Does substring create a new object?

523


What are streams in java 8?

540






what are the methods in object?

623


What are the types of casting?

584


What 4 doubled?

532


What is method and methodology?

597


What are the two types of java programming?

528


Why hashcode is used in java?

492


Define the term string pool?

575


What is a parameter in simple terms?

549


What is bool mean?

558


What is tostring () method?

534