I'm fairly new to java and looking for an interface that simply guarantees that a main(args) exists -- e.g. suitable for running from the command line with "java classname arg1 ... argN " -- without doing more.
More formally, I think that this would suffice:
public interface App { public static void main(String[] args); }
Is there such an interface in the standard libraries that are usually found in a JDK?
I couldn't find a formal entry for "Application" or "App" in the Nutshell book nor does googling "java interface main" turn up anything useful.
Thanks in advance...
Applet
, which you needed to use if you wanted your Java code to appear in a web browser. – Greg Hewgill