In order to compare int, float and double variables, you can use <, >, ==, !=, <=, >=, but to compare char and String variables, you must use compareTo(), equals()and equalsIgnoreCase().
Correct Answer:
Verified
Q12: Assume that x and y are int
Q13: What is wrong, logically, with the following
Q14: Which of the sets of statements below
Q15: The statement {} is a legal block.
Q16: As in the other members of the
Q18: Of the following if statements, which one
Q19: Assume that boolean done = false, int
Q20: In Java, selection statements consist only of
Q21: Which of the following are true about
Q32: If a break occurs within the innermost
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