I have been using String.valueOf(Char c)
method to convert a character into a string.
When checking Character class methods I came across Character.toString(char c)
method.
In the Character.toString(char c)
implementation,I see that it inturn calling the String.valueOf(Char c)
.
So what is the use of this method Character.toString(char c)
as we already have String.valueOf(Char c)
?
And if we use Character.toString(char c)
will there be any difference in the performance?