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

java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?

1 Answers   Naaptol,


Hey buddy.. can you please tell me about the use of marker interface? And is there any link between marker interface and factory methods? Thanks in advance.

2 Answers  


What is numel matlab?

0 Answers  


What are the differences between throw and throws?

0 Answers  


Is empty in java?

0 Answers  






Is an object null?

0 Answers  


How to make a class immutable?

15 Answers   Bosch, TSYS,


What is the Difference between Final Class && Abstract Class?

0 Answers   HCL,


What modifiers are used for interface declaration?

7 Answers  


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

0 Answers  


Howmany classes that package java.applet.* contains?

1 Answers   TCS,


How many boolean functions are there?

0 Answers  


Categories