The data types are:
-
Data types that are primitives:
- Data types specify the different sizes and values that can be stored in the variable. There are two types of data types in Java.
- Boolean. true and false.
- int 2 or 4 bytes Stores whole numbers, without decimals
- float 4 bytes Stores fractional numbers, containing one or more decimals. Sufficient for storing 7 decimal digits
- double 8 bytes Stores fractional numbers, containing one or more decimals. Sufficient for storing 15 decimal digits
Although these data types are a relatively small amount, they enable you to perform useful functions with your applications. and functions as procedures that your application can perform.