Which of the following options checks that character ch is neither a letter nor a white space?
A) if (!Character.isLetter(ch) || !Character.isWhiteSpace(ch) )
B) if (!(Character.isLetter(ch) || Character.isWhiteSpace(ch) ) )
C) if (!(Character.isLetter(ch) && Character.isWhiteSpace(ch) ) )
D) if (!Character.isLetter(ch) || Character.isWhiteSpace(ch) )
Correct Answer:
Verified
Q102: What is the output of the following
Q103: Assuming that a valid price should be
Q104: Which of the following statements can be
Q105: Assuming that a user enters 45, 78,
Q106: Which of the following performs the same
Q108: Assume the following variables have been declared
Q109: Which of the following options checks that
Q110: Which of the following conditions tests for
Q111: Which of the following options checks that
Q112: Assume isBusy and isHappy have been defined
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents