FirstNaukri
Home Search Jobs Govt JobsNew Resume Makernew Career Guidance Ask n Answer Student Ambassadors

Register|Login

  Ask n Answer
  Ask a Question
0 out of 300 characters

QUESTION
what is the main purpose of garbage collection??
By satendra pratap s... (Beginner)  9 years ago   38 views
 
 Your Answer
0 out of 1250 character
 
 
 
Share |
Report Abuse
 
 
 
 
ANSWERS (2)
 
 
 
 
Dear Satendra...The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used...IF you like my post then click a LIKE thank u :-)
 
 
 
Know a better answer? Click here to post.
 
 
Alok Singh (Beginner) 9 years ago
It is to clean the memory
 
 
satendra pratap s... Give me brief about that .....
9 years ago
 
 
 
 
Know a better answer? Click here to post.
 
 
 
 
 

Ask & Answer
Panel of Experts

 
 
 
 
 
All rights reserved © 2022 Info Edge (India) Ltd.