Home / Questions / Can you write a Java class that could be used both as an applet as well as an application?
Explanatory Question

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

👁 2,008 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

Yes, just add a main() method to the applet.