garbate collector(GC)?

Answers were Sorted based on User's Feedback



garbate collector(GC)?..

Answer / prabir kumar

1) it is a automatic memory management utility run by JVM.
2) the JVM cleaning the objects from the memory which are
no longer being referenced.
3) the object that is not instantiate or containl null is
also applicable for garbage collection.
3) explicitly running garbage collector is very expensive.
4) to run the garbage collect call the static method of
System class e.g. System.gc();

Is This Answer Correct ?    5 Yes 0 No

garbate collector(GC)?..

Answer / aditya mohata

it's an built it procedure in java which takes place as we
are finished wid our programs,so as to nullify the already
existing objects in the file.it's as an desturctor in c++.

Is This Answer Correct ?    3 Yes 0 No

garbate collector(GC)?..

Answer / sub

Automatically deletes unused memory

Is This Answer Correct ?    1 Yes 0 No

garbate collector(GC)?..

Answer / reddy

JVM Automatically reclaims the memory used by an object.When
no variable is referred to that object.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are daemon Threads in java?

0 Answers   Impetus,


Which is better list or arraylist in java?

0 Answers  


Why we can not force Garbage Collection?

7 Answers  


What is the difference between C++ and Java and your preferences?

0 Answers   Expedia,


How can we use primitive data types as objects?

0 Answers  






when asub class inherits a super class and overrides a public method of super class in sub class(public method in super class). why these methods needs to be public in sub class. (otherwise compile time error).

3 Answers  


explain about jre and jvm

2 Answers  


What are heap memory and stack memory and what are memory tables.

0 Answers   Aspiring Minds,


what is static import in java? Explain

0 Answers  


extending thread class or implementing runnable interface. Which is better? : Java thread

0 Answers  


What is floating data type?

0 Answers  


what is java

3 Answers   Tech Mahindra,


Categories