Java Program to demonstrate Byte wrapper class

Program

import java.lang.Byte;
public class javaLangByteDemo
{
    public static void main(String[] args) {
        Byte byObj = new Byte("55");
        System.out.println("Value of Byte object : " + byObj);
    }
}

Output

Value of Byte object : 55

Tags: