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.
the output of the above program should be simply hello why it is printing sum=10 first and then hello according to this output the block should be of static but i have not written static even then it is printing sum=10 first and then hello.
can you please explain me the output, the block in which sum is printing which kind of block it is??
and what is the utility of this block, i am sure it is not a static block am i right??