This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Source K&B 5 page 784 .the question on K&B is regarding static import.. i understand the concept of static import but during the coarse of study through that question i rectified the code to see what will the output be.
The code below is similar to the one in K&B,excpet that i have not put the code in 2 different files instead tried it this way.
The whole concept is that i am getting 30 as the output whereas i expected it to be 36. so can someone explain me the logic of operator involvement here??
Is the value 5 substituted before the operation or is it that the n after * gets its value after the operation inside () brackets is over???
Thanks & Regards,
Joined: May 05, 2010
As far i know the operation is carried from left to right