top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What distinguishes a JavaBean from a Servlet?

+1 vote
427 views
What distinguishes a JavaBean from a Servlet?
posted Oct 19, 2015 by Shyam

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Servlets are Java based analog to CGI programs, implemented by means of a servlet container associated with an HTTP server. Servlets run on the server side. Beans are reusable code components written in Java that one can use in a variety of programming environments. JavaBeans are to Java what ActiveX controls are to Microsoft. Javabeans can run on server side, client side, within an applet etc.

So, both have nothing in common except Java.

answer Oct 20, 2015 by Karthick.c
...