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 […]

