SCJP 1.4
Val SCJP2 1.2<br />====>SCJD
Originally posted by Maria Garcia:
i run this already. it really is 2.
i found an explanation from one of my study notes and is says that the reason lies on the assignment operator having the lowest precedence.
can anyone help me with this ?
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
SCJP 1.4
SCJP 1.4
guess what, i too got the value of k as -10.
k= 1+(-4)-5-2= -10.
please use the [code][/code] tags when showing code. visit <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=ubb_code_page" target="_blank">http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=ubb_code_page</a> ,for more details
k++ at the time of S.o.p ,that makes k=-10
Originally posted by swarna kumar:
hi,
i got little bit confusion ,
once we solve the expression we get k=-10,
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |