public static void main(String[] args) is a method like any other. Any method in any class can reference it via YourClassName.main(), passing either a String[] or null, depending on what's in main. If you want to know about exception handling, there are lots of posts to this forum, and other sources of information, that explain the syntax options when calling a method that is declared to throw exceptions.