2types of logical operators in java
Answers
Answered by
0
Answer:
java program which runs definitely Java applet small program aadatan
Answered by
2
Hey Buddy
Here's the answer
---------------------------------------
These logical operators are use to perform logical operations on two operands.
#1. AND Operator ( && ) :- If there are two statements and both are true, then only it will return true, else it will return false. For ex :-
2 > 1 && 5 > 1.
true
if
2 < 1 && 5 > 1
false
if
both cases are false then answer will be false
#2. OR Operator ( | | ) :- if any of the statement is true then result will be true. For example :-
2 > 1 && 5 > 1.
true
2 < 1 && 5 > 1
true
both cases are false then answer will be false
Hope helped
Stay Safe
Similar questions