Chapter 1 - Computer Programming
Chapter 1 - Computer Programming
Programming
What is a Computer?
What is a Program
Decision: Check for certain conditions and execute the appropriate code.
Classes
Collection of Methods
The name of your class needs to match the name of the current file
Methods
Compiling Programs
Programming languages are split into 2 groups
Method 1 - Interpreters
Methods 2 - Compilers
Reads and translates the entire code before executing the program
The Issue
The Object Code is not portable, this means that it can’t run on different computing
systems without constant recompilation.
When the code is compiled, it generates a virtual machine that has functionality
available to all the different computer systems.