DATA TYPES IN JAVA
They are:
1) Integer Data Type
2) Floating Point Data Type
3) Character Data Type
4) Boolean Data Type
Integer Data Type:-
- In this there are four data type keywords. They are:
byte 1 byte
short 2 bytes
int 4 bytes
long 8 bytes
Floating Point Data Type:-
- In this there are two data type keywords. They are:
float 4 bytes
double 8 bytes
Character Data Type:-
- In this there is one data type keyword. It is:
char 2 bytes
Boolean Data Type:-
- In this there is one data type keyword. It is:
boolean 1 bit
NOTE:
- Boolean data type is used to check whether the condition is true or false. In java, true and false are known as predefined literals