logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

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


  • Correct 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 garbage collection when it becomes unreachable to the program in which it is used 


  • Technology problems


    Search Results


    • 1. What is the difference between an Interface and an Abstract class?
    • Discuss
    • 2. Is the JDBC-ODBC Bridge multi-threaded ?
    • Discuss
    • 3. What are the different JDBC drivers available ?
    • Discuss
    • 4. What is a ResultSet ?
    • Discuss
    • 5. What is DriverManager ?
    • Discuss
    • 6. What are pass by reference and passby value ?
    • Discuss
    • 7. Difference between Swing and Awt ?
    • Discuss
    • 8. What is synchronization and why is it important ?
    • Discuss
    • 9. What are wrapped classes ?
    • Discuss
    • 10. What is the purpose of the wait(), notify(), and notifyAll() methods ?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment