1/11
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Java Compiler
Converts source code into machine code file, and runs everything at once
Java Interpreter
Converts machine code when program is run, goes LINE by LINE to understand what each line does. Debuggers are based on interpreters
Interpreter vs Compiler
Java Virtual Machine
loads up all bytecode from .class files and runs program
Scanner Syntax
import java.util.Scanner;
High level languages
java, python
low level languages
assembly, c
primitive data
data type that canot be manipulated (int, double, float, long, short, byte, boolean, char)
primitiveType name = data;
object data
String, Scanner (notice all uppercase)
ObjectType name = new ObjectType();
Pass by values
a mechanism to pass everything in java
static methods
with static methods, objects are NOT created
syntax: className.methodName(); or className.variableName();
non-static
with non-static methods, objects ARE created
syntax: object.methodName();