compiling and running java program - Answers java program is translated by the compiler into bytecode.
bytecode is translated to machine level language by the java virtual machine. computer executes
machine level language.
compilers translate __ into ___ - Answers source code; object code
what does the CPU do - Answers performs instructions of a program
Main Memory - Answers holds the program currently running, can disappear when computer is shut
down, fast speed but not alot of space. (RAM)
Auxiliary Memory - Answers lots of space, sometimes external, very slow, not lost when computer is
shut down, holds everything not currently being used.
define file and directory - Answers group of bytes stored in the auxiliary memory is a file. groups of files
are directories.
high level language: define and give example - Answers modern programming language that is easy for
most people to understand. java is a high level language.
machine language - Answers language that computer can directly understand
low level language - Answers close to computer language but need minor translations before computer
can run it. Assembly language is one.
Compiler compiles ___ into___ (same as other but different terms) - Answers high level language
(source code) into low level language (object code)
interpreter - Answers like a compiler but translates in chunks and immediately executes those chunks.
example: JVM
Integrated development environment (IDE) - Answers combines text editor with menu commands for
compiling and running a java program.
Object oriented programming language (OOP) - Answers software made of "objects" that act and
interact
syntax errors - Answers syntactical mistakes such as capitalization or missing a ";". a warning is given.
runtime errors - Answers occur during execution, such as dividing by 0.
logistical errors - Answers conceptual mistakes in algorithms or program. might work fine but output is
wrong. no warning given.
class data types - Answers ex: String,
, primitive data types (from smallest to largest)and what they hold - Answers byte(integer),
short(integer), int(default integer), long(integer), float(decimal number), double(decimal number),
char(single character), boolean(true or false).
illegal identifiers include - Answers starting variable name with a number, special characters (*.-)
variable initialization - Answers assignment statement ("=") gives value to a variable and initializes it
variable declaration - Answers gives the data type and name of variable to bring it into existence in the
program. must be declared before using.
taking input from keyboard (scanner class) requires... - Answers importing scanner class (import
java.util.Scanner;), opening it (Scanner keyboard = new Scanner(System.in);), and setting it to a memory
location of the data variable: "firstInt = keyboard.nextInt():"
constants - Answers never change in program, declare using "final" + data type then variable name, use
all caps for name, EX: final int DAYSOFWEEK;
widening conversion - Answers legal to go in order down the line (ex: int to long, float to double, char to
int**, short to float,etc)
narrowing conversion - Answers produces error, needs typecasting. ex: double to int, double to float)
how to typecast - Answers typecasting is CUTTING not ROUNDING so 25.999999999 cast to an int will be
25, not 26.
to typecast, (newdatatype)Variable Name
output of arithmetic is... - Answers the data type that occurs rightmost from the equation (the biggest
one) EX: int * double = double
int / int = - Answers truncated int
% modulus - Answers outputs the remainder of a division statement. EX; 4%2=0 15%2=1
Order of Operations (PUMDMAS) - Answers parenthesis P
unary (+ - ! ++ --) U
binary (* / %) MDM
binary lower (+ -) AS
charAt(index) - Answers returns the character at the index of number given. index starts at 0.
"stringname.charAt(integer)"