You are on page 1of 1

Applet

Application

SmallProgram

LargeProgram

UsedtorunaprogramonclientBrowser

Canbeexecutedonstandalonecomputersystem

Appletisportableandcanbeexecutedbyany
JAVAsupportedbrowser.

NeedJDK,JRE,JVMinstalledonclientmachine.

Appletapplicationsareexecutedina
RestrictedEnvironment

Applicationcanaccessalltheresourcesofthe
computer

Appletsarecreatedbyextendingthe
java.applet.Applet

Applicationsarecreatedbywritingpublicstaticvoid
main(String[]s)method.

Appletapplicationhas5methodswhichwill
beautomaticallyinvokedonoccuranceof
specificevent

Applicationhasasinglestartpointwhichismain
method

Example:
importjava.awt.*
importjava.applet.*
publicclassMyclassextendsApplet
{
publicvoidinit(){}
publicvoidstart(){}
publicvoidstop(){}
publicvoiddestroy(){}
publicvoidpaint(Graphicsg){}
}

publicclassMyClass
{
publicstaticvoidmain(Stringargs[]){}
}

You might also like