Online Java Compiler By
JavaTpoint.com
public class JavaByteValueOfExample4 { public static void main(String[] args) { // returns a Byte object which represents the specified String when parsed with the given radix String str="36"; int radix=Character.MAX_RADIX; //return an exception if the string does not contain a parsable byte System.out.println("valueOf() method returns : "+Byte.valueOf(str,radix)); } }
Output