Can you write a Java class that could be used both as an applet as well as an application?

Q

Can you write a Java class that could be used both as an applet as well as an application?

✍: Guest

A

A. Yes. Add a main() method to the applet.

2012-08-20, 2098👍, 0💬