How does Java know that your entering a boolean in RelationalOperating

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/learn-java/lessons/introduction-to-java/exercises/relational-operators?action=resume

<In what way does your code behave incorrectly? Include ALL error messages.>
The code is not incorrect. I merely would like to know how the script knows i am looking for a Boolean value when i haven’t set a Boolean variable? Is it merely the RelationalOperating Name that allows the computer to output a boolean value?

```

Thankyou guys for any insite

<do not remove the three backticks above>

Why would it need to? If you have 1 + 1, then that’ll evaluate to 2 regardless of what you do with the result

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.