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 are thread priorities and importance of thread priorities in java?

620


What do you mean by compiler?

573


What are loops in java? What are three types of loops?

543


Can private class be inherited in java?

543


Why string is a class?

540






Does java allow default arguments?

587


Can we access the non-final local variable, inside the local inner class?

509


Can we write a class without main method in java?

478


What is java util function?

507


What is the maximum size of arraylist in java?

484


What is an object class?

551


What are invisible components?.

1673


What is Hierarchy of exception?

639


make a method which any number and any type of argument and print sum of that arguments.....

1373


How do you read and print a string in java?

517