InterviewSolution
Saved Bookmarks
| 1. |
What is the output? System.out.println((-7>-19)||(-5>-9)) |
|
Answer» The OUTPUT: trueExplanation:The output will be true because, the condition is GIVEN that whether -7 is greater than -19 [(-7>-19)] OR [||] -5 is greater than -9 [(-5>-9)]. If any of the condition is true, the output will be true and here both the cases are true, so obviously the output will be true. |
|