Data types and Identifier in JAVA
Data Types in Java Java language has a rich implementation of data types. Data types specify size and the type of values that can be stored in an identifier. In java, data types are classified into two catagories : Primitive Data type Non-Primitive Data type 1) Primitive Data type A primitive data type can be of eight types : Primitive Data types char boolean byte short int long float double Once a primitive data type has been declared its type can never change, although in most cases its value can change. These eight primitive type can be put into four groups Integer This group includes byte , short , int , long byte : It is 8 bit integer data type. Value range from -128 to 127. Default value zero. example: byte b=10; short : It is 16 bit integer data type. Value range from -32768 to 32767. Default value zero. example: short s=11; int : It is 32 bit integer data type. Value range from -2147483648 to 214748...