Module 1: Introduction into Programming Flashcards
What is Programming?
A series of instructions for a computer to follow
What is code?
Human readable instructions that a computer can understand (interpret)
What is a command?
Often referred to as a statement or singular instruction, the list of commands we would give our compiler.
What type of programming is Java?
Object-oriented
Is Java a high-level language, or a low-level level language?
High-level programming language
What does it mean to be object-oriented?
That it has the constructs of classes and objects built into the language
Is Java a loosely-typed or strongly-typed programming language?
Strongly-typed
What does it mean to be a strongly-typed programming language?
Our variables and method types must be declared in advanced.
What is the Java virtual machine (JVM)?
A special program that knows how to execute the programs that you write in Java.
What is JRE (Java Runtime Environment)?
A set of components to create and run Java applications. It contains all the runtime libraries that your code will be calling and using.
What is JDK (Java Development Kit)?
A software development environment used for developing Java applications. It provides developer tools like a compiler, debugger, documentation tools (javadoc) and other command-line utilities.
What is an integrated development environment (IDE)?
Used for programming and Java; many also provide functionality for other languages. IDEs is typically provide a code editor, a compiler or interpreter, and a debugger that the developer accesses through a unified graphical user interface (GUI). Examples: Eclipse, Netbeans, and Intellij, etc.
How does Java work?
Step 1: the developer would write the source code in which the JDK would compile and turn the source code into bytecode.
Step 2: the JRE then uses the JVM to run the code and processes the bytecode line by line using the JIT. (source code—> bytecode)
Step 3: Finally, the JIT compiler turns the bytecode into machine code, basically line by line.
What is Compile Time?
When source code is converted at one time to bytecode.
What is Runtime?
When Java uses the JIT, the bytecode that the developer wrote is then turned into instructions for the machine to execute.