Last active
December 7, 2017 12:09
-
-
Save martinomburajr/9e775d6f94f88723e777d32325a70fc3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class FunMainMethodTrivia { | |
| //Original Main Method | |
| //JVM will always call it | |
| public static void main(String []args) { | |
| // | |
| } | |
| //Valid overload | |
| //JVM will not call it. | |
| public static void main(String s1) { | |
| //You must call this method as a developer | |
| } | |
| //Valid overload | |
| //JVM will not call it. | |
| public static void main(String s1, String s2, String s3) { | |
| //You must call this method as a developer | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment