Check your answers for the quiz review


Did you already do the review? If not DO NOT CHEAT AND LOOK AT THE ANSWERS!

Go do the review first and then check your answers here































































(you can look at the quiz practice and compare your answers to these)

Which code matches this truth table?
X Y ?
0 0 0
0 1 1
1 0 1
1 1 0

Either x or y is true, but not both
(x || y ) && !(x&&y)


You need to include a CompareTo method in your class When it implements the Comparable interface


The truth table for (x && y) && (x || y) is
X y ?
0 0 0
0 1 0
1 0 0
1 1 1


An abstract class is something that is not completely defined, it's too general


Two routines cut and array in half: the merge sort and the binary search. The binary search only looks and does not rearrange any of the elements.


Super calls a method in the parent class from the child class.


The equals method comes from the Object class but is usually rewritten in the child classes.