CMSC131 Final Exam (Univ. of Maryland)
Terms in this set (42)
Contains instructions written by a programmer specifying the actions to be performed by computer software. Tells the program what to do.
A program that translates code in a high-level language to byte code for the JVM. Checks for errors.
instructions for the JVM, created by the complier, the output document.
Java Virtual Machine (JVM)
Software that allows a Java program to run on a wide variety of operating systems. Reads and runs the byte code.
>, <, <=, >=
equal to operator
2^10 or 1024 bytes
6 things that operating systems are responsible for
1. Process Management
2. Memory Management
3. Primitive I/O
5. Network Control
4 examples of high-level languages
gives access to x outside of the class
How to set up a new scanner
Scanner varName = new Scanner(System.in);
Scanner statement for accepting an integer
Scanner statement for accepting one word
Scanner statement for accepting an entire line
Scanner statement for accepting a double
quotation mark escape sequence
new line escape sequence
tab escape sequence
Backslash escape sequence
used to denote a variable whose value is constant - can also be used in method declaration to assert that the method cannot be overridden by subclasses. The value cannot be changed.
"and" logical operator
"or" logical operator
An error that is recognized during compilation (in the IDE).
The situation in which a program executes but does not produce the results that were intended. Caught during runtime (i.e. x/0)
An error in a program that produces unintended or undesired output, where the syntax is correct but some other human error has occurred. Not recognized during compilation nor runtime.
Statement to compare strings
A control flow statement that allows code to be executed repeatedly. Checks the condition before executing.
repeatedly executes a block of statements until a specified Boolean expression evaluates to false. Executes first, then checks the condition.
This is used to declare members that do not belong to individual objects but to a class itself. Allows other methods within the same class to access the static item.
A blueprint of an object. It does not take up any memory space.
A distancing between ideas and details. Using things without knowing how they work.
Operator precedence hierarchy (list)
• ++, --
• *, /, %
• +, -
• <, >, <=, >=
• ==, !=
• =, +=, -=, *=, /=,
YOU MIGHT ALSO LIKE...
Academic Word Lists - AWL Sublists
Java Exam 1 Revised (1-4)
AP Computer Science
OTHER SETS BY THIS CREATOR
New Jersey Written Driver's Test
Gender & Sexuality - Teen Pep
Teen Pep: Puberty and Menstruation Quiz
SUPA Forensics - Chapter 1 Test