why applet doesn't have main? isn't possible a program with
out main?

Answer Posted / abcd

Before we discuss about the applet, let us know that there
are 2 categories where we use java to program,,,,they are
1. java stand alone and 2. web based programs

Applets fall under partial web based program. There is no
main(), as it does not require the same...we use
AppletViewer instead of the main() where the applet file is
embeded in the html file.....

Applet is a java file and we embed the same in the HTML
file and then we run the HTML embeded java (applet file)
thru the JDK tool AppletViewer.

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is command line argument in java?

821


What is a stack class in java ?

827


how to deploy apache tomcat server to weblogic server in java

1781


What is final access modifier in java?

811


What is the difference between a window and a frame in java programming?

827


What is the format specifier?

702


What is the difference between length and length () in java?

711


What do you mean by an interface in java?

754


What is the length of a string?

726


What is an enumeration?

762


Is boolean a data type in java?

714


Explain when noclassdeffounderror will be raised ?

802


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

699


Is multiple inheritance supported by java?

680


Can you instantiate the math class in Java?

798