Hello,
I'm preparing for
SCJP, & practicing some Qns, & my Qn is why this code is working fine, & printing the answer c=10.
public class simple {
public static void main(
String arg[]){
byte a,b=5,c; // line 1
a=c=b=10; // line 2
System.out.println("c="+c); // line 3
}
}
it should give error at line 2
please Answer my Qn, I am getting confused
Thanxs
Sheetal