hi all ,
as i m solving sun_guoqiao mocks a very confusing quest comes
tht is:-
public class Test052
{
public static void main(
String args[])
{
int i;
for( i=0; ; ++i) {
if( i > 3 ) break; //1
}
int k = 0;
labelA: { //2
if(k > 0) break labelA;
}
labelA: { //3
if(k < 0) break labelA;
}
}
}
its explanation said tht labels named can be used as long as the overlapp....
plz make me understand.wht she tried to say?
and
Other thing is :--
public class T002 extends
Thread {
public static void main(String args[])
{
T002 t = new T002();
System.out.print(t.getPriority() + " ");
t.start();
t.setPriority(1); //1
System.out.println(t.getPriority()); //2
}
}
this question explanation said tht setPriority() should be uses in order to have some effect ...
i can't undersatnd the above explanation as it also have effect of setPrioirty() before the start() method.
plz help me............