Exam #1 Topics List
This is a study-guide for the first midterm exam. In addition to reviewing the topics below, I recommend that you go back and make sure you understand the code covered in class, in the labs, and on the homework assignments. The textbook is also useful for studying: make sure you've done the reading and use the book problems for practice. Our first exam will cover the material in Chapters 1–3.
Terms and Topics
Be prepared to define and/or write code examples for the following terms:
- state vs. behavior
- method
- constructor
- accessor ("getter") vs. mutator ("setter") methods
- return type
- the
void keyword
- the
return keyword
- string literal
-
System.out.print() and System.out.println()
- variable
- type
- primitive types
- parameter
- declaring and initializing a variable with primitive type
- a variable of primitive type versus a variable of class type
- declaring and initializing a variable of class type
- the dot operator .
- comparing primitive types
- comparing class types for equality
- // and /** */
- class
- object
- instance variables (fields)
- scope of a variable
- local variable
- the
final keyword
- the
new keyword
-
private vs public
- abstraction
- The + operator and its various uses
- The division operator / versus the remainder operator %
- assignment statements on primitive types
- assignment statements on class types (references)
- conditional (
if) statements