+2 votes
in JAVA by
Can you write a Java class that could be used both as an applet as well as an application?

1 Answer

0 votes
by
Yes. Add a main() method to the applet.

Related questions

0 votes
asked Jan 24, 2021 in JAVA by rajeshsharma
0 votes
0 votes
asked Apr 8, 2021 in JAVA by SakshiSharma
...