R

Ram Sharma • 193.86K Points
Coach

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
  • Correct Answer - Option(C)
  • Views: 290
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics