Is it possible to override the main method?

NO, because main is a static method. A static method can't be overridden in Java.

Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email