java premetive data type , byte long , int

public class pk {

public static void main(String[] args){

// int has width 32

int myMinvalues = -2_134_2345;

int myMaxValues = 324342;

//byte has width of 8

byte myBytevalues=-126;

byte mynewbyte = (byte) (myBytevalues/2);  // this is nature of java java convert it into java

//// this is nature of java java convert it into int so we need to tell java this is the value should be in byte

// short has widht of 16

short val1= 32289;

short newval1 = (short)(val1/2); // here also we need to tell java value should be in short

//long has width of 64

long mylongvalue = 9_2323;

}

}