Computer Science, asked by somalika83, 13 hours ago

Predict the output of the following logical operators in the form of true or false (i) int a=11, b=12; System.out.println((a==11)&&(b==13)); [1] (ii) int c=11, d=12; System.out.println(!(c==d));​

Answers

Answered by SpandanMukherjee428
0

Answer:

First answer will be false, since a == 11 but b is != 13.

Second answer will be true, since the statement is false but it is reversed due to the ! operator

Similar questions