CAN YOU WRITE A JAVA CLASS THAT COULD BE USED BOTH AS AN APPLET AS WELL AS AN APPLICATION?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java 
 752  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

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

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!