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