How to use the toString method in Java?
<p>Can anybody explain to me the concept of the <code>toString()</code> method? How is it used, and what is its purpose?
<code>toString()</code> method define in the Object class this method is in java when get data and print data. this methodcall by default. the purpose of this method convert primitive data into object data or String data.</p>
