Variables
In Java, variables are explicitly declared and used by the compiler to e.g. check type-correctness of function calls.
To run the program, compile the code into a .class
file and then use java
to execute it.
Now that we can run and build basic Java programs, let’s learn more about the language.
Next example: Constants.