πŸ“Š JAVA
Q. What is the output of the Java code snippet?
Code:
int i=0;
for(i=1; i<=6;i++)
{
  if(i%3==0)
    continue;
  System.out.print(i+",");
}
  • (A) 1,2,
  • (B) 1,2,4,5,
  • (C) 3,6,
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1,2,4,5,

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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