I have created the following example in D.java
I always assumed that to run a
java program both class and main method must be public. However eclipse allows me to start either D1 or D2.
What would be the command line argument to start a program from the main method in for example class D1 which is defined in the file D.java?