Vocabulary

This is a non-exhaustive list of vocabulary you should know. In particular, you should know the precise meanings and be able to find the "Things in a Java program."

Recent additions are in green.

Recent additions that will not be on the next exam are in blue.

Contents

General

algorithm
program
source code
object code
compiler
Java virtual machine
iteration
recursion
concrete
abstract
method activation
class
value class
state class
linked list
(binary) tree
preorder, inorder, postorder

Things in a Java program

identifier
reserved word
operator
literal
delimiter
comment
qualified name
variable
  • local variable
  • class variable
  • instance variable
constant
declaration
scope
expression
statement
block
value
type
type cast, promotion
primitive type
composite (or compound) type
array
class
interface
abstract class
subtype
supertype
dynamic type (vs. static)
subtype polymorphism
method call (invocation)
receiver
static method call
(static) method definition
method signature
overloading
parameter
  • formal parameter
  • actual parameter
return type
instance
instance variable
(instance) method
member
constructor
accessor
mutator
class invariant
initialization
assignment
allocation
instantiation
generic class
class parameter
iterator

Java statements

variable declaration
assignment
if (test) { stmts } else { stmts }
while (test) { body stmts }
do { body stmts } while (test);
for (init; test; next) { body stmts }
for (type var: array) { body stmts }
for (type var: collection) { body stmts }
break
return
return value
switch (integer expr) { cases }
try { statements }
catch (exception-class parameter-name) { statements }
finally { statements }
throw

Java types

primitive types
  • char
  • int (also short and long)
  • double (also float)
  • boolean
arrays
with variable .length
classes
  • String
  • Scanner
  • FileInputStream
  • PrintWriter
exception-related classes
  • Error
  • Exception
  • RuntimeException
collection (and related) classes and interfaces
  • ArrayList
  • HashSet
  • HashMap
  • Iterator
GUI classes and interfaces
  • ActionListener
  • Painter and PaintPanel
  • JFrame and JPanel
  • JLabel, JTextField and JButton

Cary Gray

Valid HTML 4.01! Valid CSS!