Mega Code Archive

 
Categories / Java / Data Type
 

Java Byte Example

public class Main {   public static void main(String[] args) {     byte b = 10;     Byte bObj1 = new Byte(b);     Byte bObj2 = new Byte("4");     System.out.println(bObj1);     System.out.println(bObj2);   } }