Test 2 is scheduled for Tuesday (11/19). It will cover the Williams College Manuscript Chapters 5-7 and corresponding topics from Big Java. Here is a list of review topics and student expectations for Test 2. You will be allowed your blue "Quick Summary of Graphic Objects and Methods" handout, your AWT-Cheatsheet handout, and a single 8.5" x 11" sheet of paper with notes (front and back) during the test.
You should be able to:
Chapter 5 - "while" loops and Active objects
- trace code that uses "while" loops
- write code that use "while" loops included nested loops to perform a specified task
- understand the concept of animation with Active Objects by using the "move" method
- understand the interaction between active and non-active objects
Chapter 6 - Interfaces
- understand the use of Java interfaces to allow the declaration of variables and parameters that can refer to values from more than one class
- understand the syntax of declaring a Java interface
Chapter 7 - AWT GUI Components (Button, Choice, Label, Scrollbar)
- write code to construct AWT components
- use layout managers and panels to place components on the display at the desired location
- write AWT event-handling methods (e.g., actionPerformed) including determining which component triggered the event (e.g., using getSource( ), etc.)
- write code that indicates where the event-handling methods are located (e.g., calling addActionListener method)