In the above code main method calls a method print() ( instance method ) so print() will get executed. If there is no call to any instance methods in the main method then none of them will execute . Program will terminate after executing all statements in main(). [ March 02, 2005: Message edited by: Srinivasa Raghavan ]
No. If you are calling a Non-Static method from a Static method, you 'll get an error. Logically speaking Static method's are Class Methods, so on calling a non static method from a static means, non static method of which instance are we referring to ?