CPSC 329 Software Development Fall 2026

CPSC 329 Review Information — Exam 3

Exam 3 is a written in-class (one hour) exam covering the Observer pattern, MVC, concurrency and threads, threads in GUI applications, streams and networking, and client-server architecture and protocols. Expect primarily short answer questions focusing on foundational knowledge and underlying concepts. Some questions focus on definitions and recall while others may ask you to apply that knowledge to a particular scenario — for example, a short code excerpt, class design, or protocol to evaluate or improve.

You won't be asked to write complete programs or large sections of Java code. There are, however, some topics for which Java constructs or the Java API is part of the foundational knowledge and you may be asked to write short pieces of code for that material. Specifics for each topic area are described in that section below. You may be asked to read Java and JavaFX code.

Most answers should be short — generally 1-3 sentences, or 1-2 sentences per part for a question with several parts. Some design questions may require longer answers. A list rather than complete sentences is fine where appropriate. Time is limited, so don't write more than necessary!

The topics covered on the exam are listed below. The items under "Self check" are study goals — examples of the kinds of things you should be able to do, rather than actual exam questions or a complete list of what the exam might ask. As a starting point for studying, try to explain each topic without notes (including an example of your own where appropriate) and then answer the associated self check items. Finally, formulate (and then answer) your own questions about each topic. As a pacing guide, you should be able to start writing answers for definition/recall questions right away and "apply to a scenario" questions after a minute or two of thinking.

The Observer Pattern

You won't be asked to write code for this material.

Topics:

Self check:

Architecture and MVC

You won't be asked to write code for this material or to know specific JavaFX classes or methods. Structuring an MVC GUI application is about how the application is organized into classes and how those classes are connected, not about the JavaFX code that implements it.

Topics:

Self check:

Threads

You may be asked to read and write code involving the core elements for working with threads in Java: Runnable and Thread, the Thread methods listed below, and when InterruptedException is thrown. You should be able to write code for creating and starting a thread and for the common thread patterns listed below.

Topics:

Self check:

Shared Data and Thread Safety

You may be asked to read and write code using volatile and both forms of synchronized (blocks and methods).

Topics:

Self check:

Threads in GUI Applications

You won't be asked to write code for this material. For Task and Platform.runLater, you should know their purpose and how they behave, but you don't need to know the specifics of working with them (such as the methods for cancelling a Task or for providing its results to the UI). For the timers, you should know what each one is and when to choose one over another, but you don't need to know the details of using them.

Topics:

JavaFX topics:

Self check:

Streams

You don't need to know the constructors or methods of specific stream classes, but you should know the names of the following classes and when to choose each one: BufferedReader, PrintWriter, InputStream and OutputStream, DataInputStream and DataOutputStream, ObjectInputStream and ObjectOutputStream, Scanner, FileReader and FileWriter, FileInputStream and FileOutputStream.

Topics:

Self check:

Network Communication

You don't need to know the constructors or methods of Socket and ServerSocket other than accept(), but you should know both class names and the difference between them.

Topics:

Self check:

Concurrency in Clients and Servers

Topics:

Self check:

Client-Server Architecture

Topics:

Self check:

Protocols

You should be able to read sequence diagrams and state diagrams for a protocol, but you won't be asked to draw them.

Topics:

Self check: