Forums Java Help What is the purpose of garbage collection in Java, and when is it used

This topic contains 2 replies, has 1 voice, and was last updated by  Aakanksha 8 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3953

    Aakanksha
    Participant

    What is the purpose of garbage collection in Java, and when is it used?

    #11565

    Aakanksha
    Participant

    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.

    #11566

    Aakanksha
    Participant

    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.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.