Saved Bookmarks
| 1. |
14.What is the output of the following java code? int a=10; System.out.println(a>0?"a is positive":"a is negative") |
|
Answer» Answer: The output is "a is positive" because a>0? ACTS LIKE if else condition so in this CASE a > 0(a=10). |
|