Programming Tutorials

Interview Question: What is the difference between JavaBean and EJB?

By: Ash in Interview Tutorials on 2008-08-13  

Question:What is the difference between JavaBean and EJB?

Answer:

A Java Bean is a software component written in the Java programming language that conforms to the JavaBeans component specification. The JavaBeans APIs became part of the "core" Java APIs as of the 1.1 release of the JDK.

The JavaBeans specification defines a Java-based software component model that adds a number of features to the Java programming language. Some of these features include:
.introspection
.customization
.events
.properties
.persistence

Enterprise JavaBeans (EJBs) are Java-based software components that are built to comply with Java's EJB specification and run inside of an EJB container supplied by a J2EE provider. An EJB container provides distributed application functionality such as transaction support, persistence and lifecycle management for the EJBs.

 

 

 

 





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

Tell me something about J2EE component?

Interview Question: Is there a particularly good IDE to use with Struts ?

What do you understand by a container in J2EE?

Interview Question: Do you have to credit Struts on your own website?

Differentiate between .ear, .jar and .war files.

What are implicit Objects available to the JSP Page?

Interview Question: What is the difference between sessioncontext and entitycontext?

Question: What is an output comment in JSP?

Why J2EE is suitable for the development of distributed multi-tiered enterprise applications?

Interview Question: Why are some of the class and element names counter-intuitive?

Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?

What is the difference between interface and abstract class?

The output of System.out.println(5<<2) in Java

Interview Question: What is Deployment descriptor?

What is J2EE?

Latest Articles (in Interview)