Home / Programming MCQs / JAVA MCQs / Question
R
Q. 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); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which of the following is not true?
What is the output of the below Java program with arrays?
In Java programming language, the code is placed inside ___.
What is the output of the below Java code snippet?
Consider the following code snippet. What is printed?
When is a finally {} block executed?
Java Source Code is compiled into
Discusssion
Login to discuss.