Content of Test 3

Format of the test:

Event Handling:

(Frame Windows will not be asked)

Arrays / Vectors

You have to be able to write simple methods that are commonly used on Arrays / Vectors

Exceptions

You have to know

File I/O

Algorithms

You might have to

Review

Events

3 classes involved

Callback

Interfaces

Adapter

Inner Classes

Make sure to understand sample code!

Arrays

Vectors

Exceptions

Catching Exceptions

try
{...
} catch (Exception e)
{...
}

Delegating Exceptions

public void readFromFile() throws IOException

Throwing exceptions

String input = in.readLine();
if (input == null)
   throw new EOFException("File not long enough");

Checked vs. unchecked exceptions

Random Access

Binary <=> text files

Algorithms

Analysing Performance

O(...)

Searching algorithms

Sorting