Science, asked by Imranmd8776, 1 year ago

What is the purpose of toString() method in java ?

Answers

Answered by sanjayyadav1bjp
0

Answer:

A toString() is an in-built method in Java that returns the value given to it in string format. Hence, any object that this method is applied on, will then be returned as a string object.

Similar questions