14.What is the output of the following java code? int a=10; System.out.println(a>0?"a is positive":"a is negative")
Answers
Answered by
0
Answer:
The output is "a is positive" because a>0? acts like if else condition so in this case a > 0(a=10).
Explanation:
BRAINLIEST!
Similar questions