What are the OR and AND operators in Java? I’ve tried or, system.or, and all sorts of stuff, but haven’t found anything.
What are the OR and AND operators in Java? I’ve tried or , system.or
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well let me break it up for you……….
Short Circuit
And&Oroperator:AND Gate :
&&OR Gate :
||Non-Short Circuit
And&Oroperator:AND Gate :
&OR Gate :
|Difference between Short and Non-Short Circuit Operator:
if (false && true)// As the 1st statement is false it won’t evaluate the 2nd conditionif (false & true)//Even though the 1st statement is false, it will still evaluate the 2nd condition