logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • When is the finalize() called ? What is the purpose of finalization ?


  • Correct Answer
  • The finalize method is called by the garbage collector, just before releasing the object?s memory It is normally advised to release resources held by the object inside the finalize method 


  • Technology problems


    Search Results


    • 1. What is the purpose of garbage collection in Java, and when is it used ?
    • Discuss
    • 2. What is the common usage of serialization? What exceptions occur during serialization?
    • Discuss
    • 3. What is the Dictionary class?
    • Discuss
    • 4. How do you decide when to use HashMap and when to use TreeMap ?
    • Discuss
    • 5. How are this() and super() used with constructors?
    • Discuss
    • 6. What is Marker Interface?
    • Discuss
    • 7. X implements Y extends Z

    • Options
    • A. X can be class Y,Z are interfaces
    • B. X is an interface Y,Z are classes
    • C. X,Y are classes Z is an interface
    • D. Complilation error
    • Discuss
    • 8. Which of the following are valied?

    • Options
    • A. A class can extend any number of classes simulteneously
    • B. A class can implement only one interface at a time
    • C. A class can extend other class or can implement interface but not both simulteneously
    • D. None of the above
    • Discuss
    • 9. What is a package?
    • Discuss
    • 10. What is the fastest type of JDBC driver ?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment