Answer the following statements true (T) or false (F)
1. The compiler and the run-time system enforces semantics on the Comparable interface.
2. An interface can contain defined constants as well as method headings or instead of method
headings.
3. The Serializable interface is like all the other Java interfaces in that it contains defined constants and
method headings.
4. An inner class definition is local to the outer class definition.
5. Inner and outer classes do not have access to each other’s private members.
1. False
2. True
3. False
4. True
5. False
You might also like to view...
If a graph can be reduced by all its processes, then ________.
a) there is no deadlock b) indefinite postponement cannot occur c) the system is in an unsafe state d) none of the above
What does the first pass of selection sort do?
a. Splits the array into two approximately equal pieces. b. Orders the first two elements of the array. c. Partitions the array into two unequal pieces depending on whether each element in the array is greater or less that some pivot element. d. Locates the smallest element in the array and swaps it into the zeroth position.