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); } }
Output: 5
Previous Question Next Question
Your comments will be displayed only after manual approval.