Q. What is the output of the below Java program?
Code:outer:
for(int i=1; i<=2;i++)
{
inner:
for(int j=1; j<=2;j++)
{
if(j>i)
break inner;
System.out.print(j +",");
}
}
β
Correct Answer: (C)
1,1,2,