|
What result comes when we compile and run following code:
public class R4RSCJPTest
{
public static void main(String args[])
{
outer: for(int i = 0; i < 2; i++)
{
for(int j = 2; j >= 0; j--)
{
if(i == j) break outer;
System.out.println("Value of i is " +i+
", Value of j is " +j);
}
}
}
}
,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++,
HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
What result comes when we compile and run following code:
public class R4RSCJPTest
{
public static void main(String args[])
{
outer: for(int i = 0; i < 2; i++)
{
for(int j = 2; j >= 0; j--)
{
if(i == j) break outer;
System.out.println("Value of i is " +i+
", Value of j is " +j);
}
}
}
}
|