Solved

Which of the Following Contains a Syntax Error

Question 24

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions