The default equals implementation of class Object determines:
a. whether two references refer to the same object in memory.
b. whether two references have the same type.
c. whether two objects have the same instance variables.
d. whether two objects have the same instance variable values.
a. whether two references refer to the same object in memory.
You might also like to view...
In a nested structure, the instructions in both the true and false paths should be ____ within the outer selection structure.
A. assigned B. bracketed C. collected D. indented
Consider a class that uses the following variables to implement an array-based stack:
``` String [] s = new String[100]; int top = 0; ``` a method that implements the String peek() operation can be written as A) return s[top]; B) if (top == 0) throw new RuntimeException("Underflow"); else return s[top]; C) if (top == 0) throw new RuntimeException("Underflow"); else return s[top-1]; D) return s[top-1];
Some behaviors can require an additional step to _____________________ an object to its original state.
Fill in the blank(s) with the appropriate word(s).
A(n) ________ operating system works in conjunction with other networked computers.
a. standalone b. specialized c. server d. embedded