Adv Java Interview Questions and Answers

  • Advanced Java Interview Questions and answers

    Question.1   What is the purpose of garbage collection in Java, and when is it used? Answer:   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..