public class Number { public static void main(String[] args) { byte b = 10; //declare a byte variable and assign the value i.e 10 Byte n1 = new Byte(b); Byte n2 = new Byte("4"); System.out.println(n1); // print the value of byte variable n1 System.out.println(n2);//print the value of byte variable n2 } }