πŸ“Š JAVA
Q. What is the output of the Java code snippet?
Code:
int a=25, b=30;
boolean c = a>25 | b<40;
if(c)
{
  System.out.println("RABBIT");
}
else
{
  System.out.println("GOOSE");
}
  • (A) RABBIT
  • (B) GOOSE
  • (C) Compiler error
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) RABBIT

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
213
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
93%
Success Rate