Java

what is the difference btw a applet and a java class?



Moiz
LVL 4
Moizsaif123Asked:
Who is Participating?
 
aozarovConnect With a Mentor Commented:
Applet is a java class that runs inside a browser when a java application runs without it (via the main method).
Both Applets and Java application are constructed from java classes.
Applets tutorial: http://java.sun.com/docs/books/tutorial/applet/
Java Applicaiton: http://java.sun.com/docs/books/tutorial/getStarted/application/index.html
0
 
aozarovCommented:
This is also a good start for writing Applets: http://java.sun.com/docs/books/tutorial/getStarted/applet/
0
 
objectsCommented:
An Applet is any Java class that is a subclass of java.applet.Applet.

0
 
suprapto45Commented:
Hi,

I think that auzarov and objects have covered everything. One thing....you can embed applet in your HTML whereas Java application is a kind of desktop application.

NP: to objects and aozarov -> Hi, you all helped me alot :). Thx.

Regards
Dave
0
 
Mayank SAssociate Director - Product EngineeringCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.