1boolean result = true;
2char capitalC = 'C';
3byte b = 100;
4short s = 10000;
5int i = 100000;
6
1Primitive types are the most basic data types available within the Java language. There are 8: boolean , byte , char , short , int , long , float and double . These types serve as the building blocks of data manipulation in Java. Such types serve only one purpose — containing pure, simple values of a kind.