Byte toString()
converts Byte to a String object.
toString
has the following syntax.
public String toString()
toString in class Object
The following two examples is showing how to convert byte value to string value.
public class Main { public static void main(String[] args) { Byte byteObject = new Byte("10"); String str = byteObject.toString(); System.out.println("str:"+str); } }
The outputs: