logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the use of tostring() method?


  • Correct Answer
  • If we print any object by using println() or print() methods The println() or print() methods internally calls tostring() method and prints the return value of toString() method 


  • Technology problems


    Search Results


    • 1. why overriding finalize() method?
    • Discuss
    • 2. What is the purpose of overriding toString() method?
    • Discuss
    • 3. What is final method?
    • Discuss
    • 4. What is the use of overloading ? or why overloading?
    • Discuss
    • 5. What is the use of overriding?
    • Discuss
    • 6. why protected modifier?
    • Discuss
    • 7. What is abstract method?
    • Discuss
    • 8. Why interface data is static?
    • Discuss
    • 9. Why interface data is final?
    • Discuss
    • 10. Why interface data is public?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment