Reviewing concepts and taking notes on Java primitives data types casting and memory usage
Primitives data types size
Primitives data types casting
Variable assignment
public static void main(String[] args){
int firstValue = 9;
int secondValue = 5;
System.out.println(firsValue); // Prints 9
firstValue = secondValue;
System.out.println(firstValue); // Prints 5
secondValue = 11;
System.out.println(firstValue); // Prints 5
}
Note: Java doesn't pass pointers to the variable assignment, instead, it passes just the value during assignment.