Exam 2: A Guide to Success
How do I prepare for the exam
Clues for the
clueless
- Check the room and the time: 200 Richards, Monday, April
9, 2007 from 6:00 pm till 9:00 pm.
- Come to the review session: Thursday, April 5, 2007 from 3:00
till 4:00 pm in 50 Dodge
- Review what we did in the labs
- make sure you understand every
labs and have completed all programs.
- Read all lecture
notes, run the programs provided with the
lecture notes, understand the programs provided with the lecture
notes.
- Go over the homeworks, make sure you understand how to do the
parts of the homework you may not have finished.
What do I need to know?
- Designing classes with containment, union of classes,
self-reference, circularly referential data.
- Abstracting over data definitions: abstract classes, derived
classes.
- Abstracting over data types:
Object
, type
parameters.
- Overloading constructors: for user's convenience, to assure data
integrity, to prevent misuse.
- Defining examples of data for all these classes.
- Designing immutable methods for all kinds of class hierarchies -
one task --- one method.
- Designing loops with accumulators.
- Using interfaces to represent function objects:
designing the interfaces, designing classes that implement them,
using the function objects as parameters.
- Using interfaces to represent data organization and interactions
with data:
Traversal
, data structures such as queues,
trees.
- Designing and testing methods that mutate
data.
- Designing generic algorithms using traversals and function
objects.
- Java loops:
while
, for
,
for-each
.
- Reading Javadocs, using
Java Collections Framework.
- Designing programs for the given interfaces.
- Designing tests for all of these programs.
- Anything else I may have forgotten :)
What should I bring with me?
Required:
- Open mind.
- Design Recipe Index Card.
Optional:
- The textbook and lecture notes.
- Notes I took when reading the text and the lecture notes.
- Etudes and Homeworks portfolio.
- Lab materials: descriptions, solutions, my notes.
Good Luck