In this module we introduce Graphical User Interfaces (GUIs), and Java's support for building GUI applications. We also introduce the Model-View-Controller (MVC) design pattern and how it is typically used when developing GUI applications.
We conclude this module with an introduction to concurrency in Java using threads and processes. We discuss some of the issues that arise with concurrent programs along with Java's support for concurrenty and synchronization.
- Draw the UML sequence diagram for the Model-View-Controller design pattern.
- Given a set of Java classes, change the code to use the Model-View-Controller design pattern.
- Draw the UML class diagram for the Model-View-Controller design pattern.
- List the three Java AWT top level containers.
- Explain the difference between a Java Thread and a Java process.
- Explain the difference between the two ways of defining a Java Thread.
- Use the synchronize keyword to ensure non-interference between threads.
- Use the synchronize keyword to implement exclusive access to a resource.