πŸ“Š JAVA
Q. What is the output of the Java code snippet below?
Code:
outer:
for(int i=1; i<=4;i++)
{
  inner:
  for(int j=1; j<=4;j++)
  {
    if(j==1)
      break outer;
  }
System.out.print("A");
}
  • (A) A
  • (B) AAAA
  • (C) No Output
  • (D) Compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (C) No Output

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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