Multiple Choice
Which of the following contains a syntax error?
A) public int getSize() {
return size;
}
B) public boolean isEmpty() {
return theData.size() == 0;
}
C) public boolean isEmpty() {
return size == 1;
}
D) public boolean isEmpty {
return size == 0;
}
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q18: Through _, the designers of a new
Q19: When a queue is implemented using a
Q20: When a queue is implemented using a
Q21: Two Java Collection classes that implement the
Q22: If a non-circular array is used to
Q23: You can use a Deque object to
Q25: You can implement a queue as a
Q26: The EmptyQueueException is associated with the action
Q27: In Java 6.0, the Deque _ represents
Q28: The _ method creates a Random object