Thursday, April 10, 2014

OCJP Practice question #11

1:17 PM


          What will be the output of the following Java Program ?



Answer :

Choice B is correct

x *= 3 + 7; is same as x = x * (3 +7) = 5 * (10) = 50 because expression on 


the right is always placed inside parentheses. 


More Question here : OCJP

0 comments :

Post a Comment

 

© 2014 DieHardTechy . All rights resevered. Designed by Diehardtechy