How does Java know that your entering a boolean in RelationalOperating


#1



https://www.codecademy.com/en/courses/learn-java/lessons/introduction-to-java/exercises/relational-operators?action=resume


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


#2

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


#3

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