Hi to all
I want to know why the below highlighted line is not showing unreachable compile error.
public class loopclass
{
public static void main(String...args)
{
int k=2;
outer: while(true)
{
++k;
inner: for(int j=6;j>2;j--)
{
k=8-j;
// if(j==3)continue inner;
break outer;
}
continue outer;//at this line compiler never reached in this program,then why not showing error.
}
System.out.println(k);
}
}
[ January 16, 2008: Message edited by: pradeep singh ]
[ January 16, 2008: Message edited by: pradeep singh ]
[ January 16, 2008: Message edited by: pradeep singh ]