Home »
MCQs »
Java MCQs
Which Java method is used to convert an object to string?
53. Which Java method is used to convert an object to string?
- createString()
- toString()
- object.string()
- newString()
Answer: B) toString()
Explanation:
Java method toString() is used to convert an object to string.