What is garbage collection? What is the process that is responsible for doing that in java?



What is garbage collection? What is the process that is responsible for doing that in java?..

Answer / Sheela Maurya

Garbage Collection (GC) is a process in Java that automatically frees the memory occupied by objects that are no longer being used. The Garbage Collector identifies and reclaims these objects, making them available for future use.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a for loop in java?

1 Answers  


Can we write class inside a class in java?

1 Answers  


what is difference betweem home interface and remote interface?

1 Answers   CTS, HCL,


if a java file without any source code is valid java file?

3 Answers   SparkTG,


Can classes declared using the abstract keyword cab be instantiated?

1 Answers   MCN Solutions,


Which is better 64 bit or 32 bit?

1 Answers  


What is operator?

3 Answers  


There are 2 different ways to create an object. a)By using keyword "new" b)By using Class.forName ("className").newInstance(); What is the difference between these 2 methods.

3 Answers  


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

1 Answers  


What are streams in java 8?

1 Answers  


What is difference between string and stringbuffer?

1 Answers  


Is a case study a method or methodology?

1 Answers  


Categories