Data Types in Java
Java is a strongly typed programming language. Therefore, you have to mention the type of value before compilation otherwise, you will get a compile-time error.
There are mainly two type of data:
Primitive data type are divided into following parts:
float f = 3.3333333f
Float values must be created with the suffix F or f. When after decimal you add digit upto 7 then it comes under float data type. but as soon as number goes beyond 7 digit then our value comes under double.
double d = 3.33333333d
we can store alphabates, numerical, special character.
In java there is no concept of range to boolean datatype.