Online Java Compiler By
JavaTpoint.com
public class JavaByteDecodeExample2 { public static void main(String[] args) { //for null value it will give an exception String str="null"; Byte b1=Byte.decode(str); System.out.println(b1); } }
Output