

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program?
public class ternary_operator_Example { public static void main(String args[]) { int a = 5; int b = ~ a; int c; c = a > b ? a : b; System.out.print(c); } } |
A. | 6 |
B. | 4 |
C. | 3 |
D. | 5 |
E. | 2 |
Answer» E. 2 | |