Mastering Java: The Ultimate Quiz for 'Thinking in Java'

Disable ads (and more) with a membership for a one time $2.99 payment

Dive into the depths of Java with our quiz based on "Thinking in Java, Fourth Edition" by Bruce Eckel. Test your knowledge, solidify concepts, and prepare for certification with challenging questions and insightful feedback.

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What data type does relational operators NOT work with?

  1. Integers

  2. Strings

  3. Characters

  4. Boolean

The correct answer is: Boolean

Relational operators work with all primitive data types except for Boolean values. Boolean values can only represent true or false, and therefore do not have numerical or string values to compare for relational operations. Integers, strings, and characters all have numerical or lexical values that can be compared using relational operators.