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 bytecode in java ?

609


What is r * in math?

554


Why do we use string?

581


How to perform linear search in java?

568


How do you compare values in java?

549






What is the benefit of inner / nested classes ?

527


Is a boolean 1 bit?

615


What is the method overriding?

621


Why wait and notify methods are declared in object class?

599


What is the difference between heap memory and stack memory?

616


We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.

1488


What a static class can contains?

700


Explain the difference between collection api and stream api in java8?

511


Is hashset sorted in java?

667


How do you check whether the list is empty or not in java?

515