R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of garbage collection in Java?

  • (A) To delete unused variables
  • (B) To clean the screen
  • (C) To manage memory automatically
  • (D) To close file streams
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
Garbage collection automatically manages memory by deleting unused objects.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.