CIS 163 AA - Java Programming I - Section 5811
Worksheet #8
Due Monday, December 5, 2005

Name:

I. Definitions: please explain the following terms:

  1. polymorphism

  2. binding

  3. dynamic binding

  4. sorting

  5. searching

  6. exception

  7. try-catch statement

  8. stream

II. Question or short essay

  1. Why does a binary search require that data be sorted?

  2. What is the general strategy of the selection sort?

  3. How do you set up a listener to respond to a JButton object?

  4. List 3 examples of situations that can cause exceptions.

  5. How are errors handled differently from exceptions?

  6. How is the 'finally' clause used?
III. Programming Exercises Write source code for the following:

    Modify the rebound program from chapter 8, page 471, such that when the mouse button is clicked on the panel the animation stops and when it is clicked again the animation resumes.