Will an Object Garbage Collected whereas it’s Still Reachable?

Can you please explain me will an Object Garbage Collected whereas it’s Still Reachable?


2 Answers
1-2 of  2
2 Answers
  • If the object is no longer of any use, the garbage collector will reclaim the memory that was previously used by the object, thereby freeing it so it can be utilized by another object. However, if another object is not required or is not in use, the unused memory that was freed up will be given back to the system.

Data Analysis

Didn't get the answer.
Contact people of Talent-Data Analysis directly by clicking here