What's the difference between servlets and applets?

What's the difference between servlets and applets?

Applets :

- Applets are applications designed to be transmitted over the network and executed by java compatible web browsers.
- An Applet is a client side java program that runs within a web browser on the client machine.
- An applet can use the user interface classes like AWT or Swing.
- Applet Life Cycle Methods: init(), stop(), paint(), start(), destroy().

Servlets :

- Servlets are java based analog to CGI programs, implemented by means of servlet container associated with an HTTP server.
- Servlet is a server side component which runs on the web server.
- The servlet does not have a user interface.
- Servlet Methods: doGet(), doPost()
What is JSP?
What is JSP? - JSP is a technology that returns dynamic content to the Web client using HTML, XML and JAVA elements....
What is co-variant return type in java?
A covariant return type allows to override a super class method that returns a type that sub class type of super class method’s return type. It is to minimize up casting and down casting......
Define collable collections in java
A callable collection is an interface whose implementers define a single method with no arguments. The Callable interface resembles Runnable..
Post your comment