COMP 202 Lecture Notes - Lecture 20: Java Virtual Machine, For Loop, Bracket
jc123 and 40170 others unlocked
100
COMP 202 Full Course Notes
Verified Note
100 documents
Document Summary
Comp 202 lecture 20 midterm review. Algorithm: a set of clear and specific instructions for carrying out a task or solving a problem. Compiling: in java this is the process that turns the java file into a class file. The class file contains the bytecode that is then interpret by the java virtual machine or computer. Decimal to binary: what is 5310 in binary notation (base 2)? o. Errors that do not effect code functions but rater make it hard to read: compile error. Syntax errors preventing compiling of code: run time errors. Do not prevent code from compiling but can cause it to crash at run time: logical errors. It compiles and runs but does wrong thing. Scanner: in order to obtain user input, we can create a variable of type java. util. scanner o. Variable types o: all expect for string are primitive types.