Online Java Compiler By
JavaTpoint.com
public class JavaByteToStringExample1 { public static void main(String[] args) { Byte b1=98; Byte b2=102; //returns a String value represented by this Byte String str=b1.toString(); System.out.println("1. String value : "+str); System.out.println("2. String value : "+b2.toString()); } }
Output