Category: Variables

07 Data Types, Literals, Variables, Expressions, and Operators

7.1 | Data Types   Each variable declaration in Java must define the data type of the variable. The data type defines what values a variable can store. The variable type can be as follows: One of the eight basic primitive data types An Array The name of a class The eight primitive data types hold values for integers, floating-point numbers, characters, and boolean values. They are called primitive because they are built into the system and are not actual objects. This makes them more efficient to use.   Data Type Width (bits) Minimum value/ Maximum value boolean NA True, false Read More