Home > Information Technology > Programming Languages > Control Flow Statements in Java
25 QuestionsLog inwatch on youtubeLearn
00:00:00
1. What is the result of the following code snippet?javaCopy codeint x = 10;if (x > 5) { System.out.println("x is greater than 5");} else { System.out.println("x is not greater than 5");}
  "x is greater than 5"
  "x is not greater than 5"
  Both A and B
  No output

🎁 Claim Rewards

🎁 Login to earn rewards !!!