logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the purpose of overriding toString() method?


  • Correct Answer
  • we can override tostring() method to return String representation of our object data 


  • Technology problems


    Search Results


    • 1. What is final method?
    • Discuss
    • 2. What is the use of overloading ? or why overloading?
    • Discuss
    • 3. What is the use of overriding?
    • Discuss
    • 4. 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
    • 5. What is the use of super call?
    • Discuss
    • 6. why overriding finalize() method?
    • Discuss
    • 7. What is the use of tostring() method?
    • Discuss
    • 8. why protected modifier?
    • Discuss
    • 9. What is abstract method?
    • Discuss
    • 10. Why interface data is static?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment