ICSE Class 10 Computer Applications
Question 11 of 46
String Handling — Question 11
Back to all questions 11
Question Question 2(x)
Mention the purpose and syntax of valueOf() method.
The valueOf() method returns the string representation of the argument.
Syntax:String.valueOf(data)
Here, data can be of various types like char, boolean, int, long, float, double or char array.