Mega Code Archive

 
Categories / Java / Data Type
 

Byte class creates primitives that wrap themselves around data items of the byte data type

public class MainClass {   public static void main(String[] args) {     byte by = (byte) 'A';     Byte by2 = new Byte(by);     System.out.println(by2.byteValue());   } }