Skip to main content

Program to convert Byte To String


public class ByteToString
{

public static void main(String[] args)
{
byte [] b="hello !".getBytes();
String s=new String(b);
System.out.println(s);

}

}