Data types JAVA

Java has eight primitive data types-
Boolean – value either true or false
Char – character value
Byte – integral value
Short – integral value
int – integral value
long – integral value
float – floating point value
double – floating point value

Strings are class type which references to an instance of class String.