data types

Data Types in Java

The data types defines the type of values that a variable can take, for example, if a variable has a float data type, it can only take float values. In Java we have two categories of data type: 1) Primitive data types: The primitive data types include Integer, Character, Boolean, and Floating Point. 2) Non-primitive data […]

Unit 3: Data Types, Variables and Arrays

Java is a Strongly Typed Language: It is important to state that at the beginning that Java is a strongly typed language. Indeed, part of Java’s safety and robustness comes from this fact. First, every variable has a type, every expression has a type and every type is strictly defined. Second, all assignments, whether explicit […]