char, int, long, boolean, float, double --> String
Correct syntax: String.valueOf(char)
Wrong syntax: char.toString()
Because these primitive are not inherit from Object, so they do not have toString() function.
Correct syntax: String.valueOf(char)
Wrong syntax: char.toString()
Because these primitive are not inherit from Object, so they do not have toString() function.