The basic principle is that you cannot use a non-static method or variable until the Class is instantiated. Since the Class will not instantiated when we execute the class using
java, main should be declared as static. Now since main is static, main or any static methods can only call static methods and can only access static properties. This is because, the other properties need not be available when we run a static methods.
Hope it clears your doubts --
------------------
Hari Gangadharan
Out of the turbulance a soft voice spoke to me ...
Son smile and be happy things could be worse...
I smiled and I was happy and things became worse!