What’s on the Final Exam

Tuesday, May 4, 2004

150 Points

Comprehensive

 

 

Reading

Chapters 4-8

Labs 1-10

 

Topics

Class diagrams

-         Single class diagrams – name, attributes, methods

-         Multi-class diagrams – association relationships (using), composition relationship (has-a), inheritance relationship (is-a), interfaces, abstract classes

events

event handling

platform independent/platform dependent

swing

graphical user interfaces

GUI components - JLabel, JTextField, JButton, JTextArea, JRadioButton, JCheckbox

GUI containers – JOptionPane, JPanel

Applets vs. applications

ActionListener vs. ItemListener (actionPerformed() vs. itemStateChanged())

layout managers (flow, border, box, grid)

exceptions

try-catch blocks

checked exceptions

file operations – open, read, write, close

streams

writing to an output text file

reading from an input text file

StringTokenizer

See also “What’s on Test #1” and “What’s on Test #2”

 

Sorts of Questions:

-         Draw a class diagram

-         Given some code, predict the output (about 1/3 of the test)

-         Given some code and a problem description, fill in the missing parts (about 1/3 of the test)

-         Define simple terms (such as events, exceptions, files, streams, open, close, read, write, abstraction, encapsulation, uses, extends, inheritance, composition, reuse, overloading, overriding, polymorphism, signature, etc.)

-         Explain a concept

-         Compare and contrast two ideas

-         If given code with graphical widgets, be able to predict what the screen will look like

-         If given code with file input and output, be able to predict the contents of files and/or the output from the program

-         Be able to write try/catch blocks

-