What will be the out of the statement ("1".equals("1") && "1" == "1") *
(1 Point)
True
False
Answers
Answered by
0
Answer:
11111111111111111111111111111111
Answered by
0
Answer:
True
Explanation:
First solving the L.H.S part of &&
("1".equals("1")
In .(dot) operator etiher term written in L.H.S oe term written in R.H.S has to be true which gives us the output 1 or true
In this case we get the answer 1 or True.
Solving the RHS part of && operator
"1"=="1" , Here comparison operator is used between the both terms and we get the answer 1 as we know "1"=="1"which gives us the answer true.
In && operator if the LHS = RHS we get true or 1 .
Hence the answer to this question is True.
#SPJ2
Similar questions