[sandeep]: static code cannot be accessed in non static block
Other way around. Static code can be accesed in a non-static block. However non-static code cannot be directly accessed from a static block. Unless you create an instance and use that to access the nonstatic code.
Just I asked to clarify my dowt, I dont mean to point out the error. Initially I thought this program is wrong, but again I thought there might be some hidden concept behind this, I might be wrong because its from great authors; so I posted here. Now I understood, it was printign mistake, everyone commits mistakes sometimes
Sorry, if I am referrig to the one which already exisiting in Errata.
Thanks for your replies folks.
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
a bit of art, as a gift, the permaculture playing cards