Can you write a java code that works both as an applet and an application?
Question : Can you write a java code that works both as an applet and an application?
Yes. You simply need to add the main() method in your applet program and create a frame in the main() method.