R
Q. What is the output of the Java code snippet?
int a=25, b=30; boolean c = a>25 & b<40; if(c) { System.out.println("RABBIT"); } else { System.out.println("GOOSE"); }
Since a is not greater than 25 so C will store false value. Else statement will be executed so GOOSE will be printed.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Which of these maintains insertion order?
Q. Class is considered ________ of an object and instance.
Q. Dividing an integer by zero is a ______error
Q. Which of these is correct about passing an argument by call-by-value process?
Q. What is the output of the following code snippet?
Q. Which will legally declare, construct, and initialize an array?
Q. Which tag should be used to pass information from JSP to included JSP?
Discusssion
Login to discuss.