Exam 2 Topics
CS141: Introduction to Programming, Fall 2015


General Comments and Recommendations

Chapter 6 A Second Look at Classes and Objects

Vocabulary

Static (or class) member variables (fields)
Static (or class) methods
Method/Constructor overloading
Method signature (name + parameter types)
Reference to an object
Pass by value (primitive types)
Pass by reference (objects)
Comparing objects (.equals)
Copy constructor
Aggregation
Deep vs shallow copying
null reference
"this" reference variable
Garbage collection

Topics

Chapter 7 Arrays and the ArrayList Class

Vocabulary

array (1D, 2D, multi-dimensional)
Declaring an array
Accessing array elements
Initializing an array
Enhanced for-loop
Out of bounds problems
Calculating with arrays:
  ... comparing, summing, min/max, averages, swap elements
  ... sequential search, sorting
Arrays class
Arrays as arguments & parameters
Arrays of objects
Selection sort
Binary search
2D Arrays
  ... declaring
  ... obtaining number of rows/columns
  ... accessing elements
  ... as arguments & parameters
ArrayList class
  ... Creating and declaring an ArrayList
  ... Diamond syntax <>
  ... Auto-boxing/wrapping (e.g. Double, Integer)

Topics

Chapter 9 Inheritance

Vocabulary

Inheritance, "Is a" relationship
superclass (or base class)
subclass (or derived class)
super()
Object class
extends
override
Polymorphism

Abstract (vs concrete) class
Interfaces
protected access
package access
inheritance hierarchy
overriding methods (e.g. equals)
instanceof operator
comparable interface

Topics

Chapter 5.10 Files, and Chapter 10.1-10.2 Exception Handling

Vocabulary

File
Ascii (text) file vs binary file
Opening a file
Closing a file
White space

Exception
Throwing an Exception
Catching an Exception
try-catch
Delimiter

Chapter 11 GUI Applications

Vocabulary

window
GUI
components - buttons, labels, textboxes
container - JFrame, JPanel
Java Foundation Classes
Abstract Windowing Toolkit (AWT)
Swing
Event
Event Driven
Event Listener
Event Object
Event Source
Event Firing
Action Events
Action listener class
actionPerformed method
anonymous class
extending a class
implementing a class
Layout Manager