Difference: Java Beans, Servlets

Questions by Beena   answers by Beena

Showing Answers 1 - 5 of 5 Answers

sarat

  • Sep 29th, 2005
 

java bean is a reusable component,where as the servlet is the java program which extends the server capability

  Was this answer useful?  Yes

prem kumar

  • Jul 29th, 2006
 

HI

What is meant by reusable?

we can use instance of a class as we want more times. Then, and diff between bean and class.

Prem

premkumar.cm@gmail.com

  Was this answer useful?  Yes

lieutaryan

  • Feb 13th, 2010
 

Servlets are java classes designed to serve content from the web, like a web server serves HTML pages. A servlet is used to receive requests, process them, and then return responses to the program that asked for them over a network. In order to function properly, they must be run in the context of a Servlet Container, a special program designed as a middle man between the servlet and the client (program talking to the servlet).

JavaBeans are normal Java Objects that follow some specification restrictions that make them re-useable in many contexts. That means the JavaBean can be run along side of Servlets, or as part of a desktop program, or inside an Applet... The best designed JavaBeans do not know or care about their context, and are thus not limited by them. Do not confuse (however easy it might be) JavaBeans with EJBs, which are rather different.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions