V
Q. What will be the output of the following Java code?
class bool_operator { public static void main(String args[]) { boolean a = true; boolean b = !true; boolean c = a | b; boolean d = a & b; boolean e = d ? b : c; System.out.println(d + " " + e); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is the output of the following code snippet?
Q. What is the result of compiling and running the following code?
Q. Which of the following should be true of the object thrown by a thrown statement?
Q. What is the output of the following code?
Q. What is the output of the Java code snippet with a Ternary operator?
Discusssion
Login to discuss.