Classes Quiz Practice
This quiz will primarily focus on ArrayLists, classes, interfaces and GridWorld. There may be other material on there as well. You should be very comfortable defining a simple class, answering questions about Bug, implementing an interface and doing ArrayList manipulations.
Here are some practice problems. Also refer to the multiple choice practice set.
Oracle classes questions and exercises
ArrayList mystery
ArrayList — min to front
ArrayList — stutter
Review of Comparable
Comparable — Location — note that this asks you to implement the Comparable<Location> interface, which means that your compareTo method will take an Location as a parameter. You should be comfortable with implementing the Comparable interface and having compareTo take in an Object as a parameter.
Comparable — Point — same note as above
Oracle interfaces questions and exercises — these are all great review with solutions
Supplementary Reviews Sheets & Videos:
- Class Object Concepts & Vocabulary
- Object Class Review Slides
- defining a class
- constructors
- advanced instance methods
- encapsulation
- Interfaces
- Implementing Comparable





