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 is pojo class in java?

0 Answers  


What is class level lock ?

0 Answers  


How do you check if a string contains only numeric digits?

0 Answers  


How use .contains in java?

0 Answers  


Java violates few objected oriented concepts. Can you explain in what way?

3 Answers   Ness Technologies,






What is data structure in java?

0 Answers  


Can we override data members in java?

0 Answers  


How will you reverse a singly-link list?

0 Answers   Akamai Technologies,


different types of threads?

18 Answers   TCS,


What is a protected void?

0 Answers  


how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT

0 Answers   Google,


What is nan in java?

0 Answers  


Categories