Professional Documents
Culture Documents
CTE 444 Data Types and Operators
CTE 444 Data Types and Operators
Data Types
Java supports the use of variables to store data in memory. There are two major types of
variables in Java namely: Primitives and Complex objects variables.
Primitive variables are stored in the fastest possible memory but there’s a small number of data
types that can be stored this way. Primitive variables include:
1. Numeric values: Integers, floating point decimal
2. Single characters (Not complete strings)
3. Boolean values (True/False)
Complex objects variables are defined as an instance of a Java class. This
include Strings, Dates and everything else you might want to work with.