Returns the string represetations of the numbers value
Answers
Answered by
0
Answer : toString()
For Example-
class Convert_into_string
{
static void main()
{
int a=10;
String b=Integer.toString(a);
System.out.println("String-type value of numeric 10 :"+b);
}
}
Output will be : 10
But the value of b will be stored as : "10" in Java's memory-location created for variable - b ;as the data-type of variable - b is String-type.
Similar questions