Himanshu V Singh wrote:
But Method can be accessed via object of the class, why is it so, please guide me with a brief explanation ?
It has very simple reason static members are class level members and you don't need instance for that and non static members are instance specific so they need instance to get called so in your case
if run method had been static method then you could use it without creating any instance like
TryCatchTest.run();. Now as your run method is not static so it is a instance specific method so when you call it from static method i.e. main method you get compiler error saying
non-static method can't be referenced from static context. I guess this will help.