What is the difference between an applet and a servlet?

Answer Posted / nitin soni (jack)

(1):Applet is a part of Core JAVA and Servlet of Advance
Java. Applet is client side program and Servlet is Server
side. When Applet runs it take the resources of client
whereas Servlet is processed at server.

(2):An Applet's class, jar files can be accessed and
downloadable by client but not so in case of servlet.

(3):Applets can run under any web browser their execution
is dependent on Client as they require JRE Whereas Servlets
do not require any thing specific at client side, as they
require java enabled web/application Server.

Is This Answer Correct ?    30 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the custom jsp tags and the beans.

617


Can we refresh servlet in client and server side automatically?

594


What is a generic servlet?

522


Why do we need servlet filter?

573


What do you mean by web applications? Explain web application directory arrangement?

541






Which http method is said to be non-idempotent and idempotent?

608


what is multiple server?

1760


Define declaration.

618


Explain load on start-up and its importance?

601


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

552


What is servlet used for?

698


What is servletconfig?

547


What is the difference between using getSession(true) and getSession(false) methods?

574


explain the advantages of servlet life cycle?

561


What are the mechanisms used by a servlet container for maintaining session information?

568