I am not sure how to do it but i think that is not
what you want. Because you are not executing lets say
Main.class you are executing Main (as a class that
contians main function). So the name of the file could
be Holiday.class but if class that contains main() is
named Christmas then you execute it by java Christmas
and not Holiday.class.
Thats why i do not know how to do it, because you have
to somehow omit the .class part and call main
Function.