The valueOf() method converts data into human-readable form.So String valueOf() will return the string representation of the value. The valueOf() method is a static method.

  • String valueOf(inum)--this syntax will return the string representation of the integer inum.
  • String.valueOf(data, 0, 5)-- This syntax will return the string representation of the character Array 0 to 5
  • String.valueOf(fNum) --this syntax will return the string representation of the float fNum

Suggest An Answer

No suggestions avaliable!