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
/* ExecutableTest.java | |
This example program is designed to illustrate: | |
A) The various possible locations for (kinds of) classes that can be within the same .java file. | |
B) Which of those classes can contain main methods which adhere to all the rules to be a "true" | |
main() method. | |
C) Which of those main() methods can be run from the command line. | |
D) How to access all of those main methods from within the "main" main() method. | |
E) It also happens to illustrate some of what can be called from within a static method. | |
F) And... one of the advantages of using a varargs parameter instead of a String array parameter |