
CS402 Exam 1 Review
Quiz by Elaina Wittmer
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
The root of the Java Object Hierarchy is Object
Which of the following is not included when checking for equality?Â
A java class is stored in which type of file?
ArrayLists can contain Objects or primitive types
Classes can inherit from multiple parents in Java
Which of these is a valid way to initialize an empty ArrayList with a size of 400?Â
A class is a blueprint for creating objects
Group the following into classes and objects
Private methods can be accessed by other classes in the same directory.
What is the difference between the size and length of an ArrayList?
ArrayLists have a length of 10 by default
What data type does this method return?

What is the correct order of sections in a UML diagram (as shown in class)?
Java allows multiple methods within a class to have the same name
Complete the body of this loop to print every odd digit between 0 and 50. Assume integer i has not yet been initialized.Â
for (<fill in this part>) {System.out.println(i);}
Arrays can contain both Objects and Primitive types
Which of the following has not been included in the UML diagrams we have seen?Â