User Tools

Site Tools


Due 11/3/08 (in class)

You don't need to hand anything in, just be prepared to discuss.

  1. Study the interview questions. You might want to…
    1. Try making a simple program with two threads that deadlocks the Ninjas.
    2. After you figure out what the inner class one prints, type it in and run it.
  2. Identify your single most time-consuming Project 3 bug.
    1. What failure did it cause (e.g., what output did you see)?
    2. What was the error?
    3. How did you fix it?

Due 10/8/08 (in class)

  1. Print the “What makes a good program?” set of rules (from lecture 2008-10-06, file programming-style.pdf). Mark each rule as supporting one or more of the principles of Simplicity (“S”), Clarity (“C”), and/or Generality (“G”).
  2. Add a junit test module to your project (Project 2B). Submit hardcopy of your test class (e.g., PuzzleSolverTester) and include with project submission on regular due date.

Questions for class time discussion (nothing to be handed in, just be prepared to discuss):

  1. To what noun does the adjective “polymorphic” apply?
  2. Distinguish between dynamically bound methods and statically bound data members.
  3. On what syntactic structure is a “cast” applied?
  4. Do casts generate compile time or runtime errors?
  5. What is “Hoare's rule of consequence” and how does it apply to exceptions and subclass methods?
  6. What is multiple inheritance?
  7. What approach (keyword) in Java is used in place of multiple inheritance?
  8. With what syllable do interface names frequently end?
  9. Name two Java techniques to determine the class of an object.
  10. What is the alternative way to implement a thread without subclassing Thread?
  11. Variables may be of primitive type, class type, array type, and what fourth type?
cs190m-assignments.txt · Last modified: 2008/10/29 16:54 by jtkorb