DEVFYI - Developer Resource - FYI

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

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

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

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

(Continued on next question...)

Other Interview Questions