Skip to main content

Convert byte to Byte object Example

CODING:
public class byteToByteExample {
 public static void main(String[] args) {
    byte i = 10;
    Byte bObj = new Byte(i);
    System.out.println(bObj);
  }
}

OUTPUT:

10


Comments