Can you write a Java class that could be used both as an applet as well as an application?
Question : Can you write a Java class that could be used both as an applet as well as an application?
Yes, just add a main() method to the applet.