What is toString () and why we need it?

The toString method is used to return a string representation of an object . If any object is printed, the toString() method is internally invoked by the java compiler. Else, the user implemented or overridden toString() method is called.

Sizin İçin Seçtik  Babalık tanıma senedi nereden alınır?

Leave a Reply

Your email address will not be published. Required fields are marked *