logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • why overriding finalize() method?


  • Correct Answer
  • If constructor opens the file finalize() method closes that file If constructor opens the connection finalize() method closes that connection To perform finalization operation we must overriding finalize method 


  • Technology problems


    Search Results


    • 1. What is the purpose of overriding toString() method?
    • Discuss
    • 2. What is final method?
    • Discuss
    • 3. What is the use of overloading ? or why overloading?
    • Discuss
    • 4. What is the use of overriding?
    • Discuss
    • 5. If super class ref is pointing sub class object then by using super class ref is it possible to call sub class newly defined method?
    • Discuss
    • 6. What is the use of tostring() method?
    • Discuss
    • 7. why protected modifier?
    • Discuss
    • 8. What is abstract method?
    • Discuss
    • 9. Why interface data is static?
    • Discuss
    • 10. Why interface data is final?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment