variables

Variables in Java

Variable is the reserved memory location in the main memory (RAM). It is made up of “vary + able” that means the value can be changed. The actual value in the memory location changes during the execution of the program. int number=50;  //number is the variable Java Variables A variable is like a container that […]

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