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

By: Ash Printer Friendly Format    

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.

 

 

 

 



Most Viewed Articles (in Interview )

What types of comments are available in the JSP?

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

Interview Question: Why do we need Struts?

Interview Question: Is Struts compatible with other Java technologies?

Question: What is a Hidden Comment in JSP?

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

Explain the Polymorphism principle.

What is the difference between Session Bean and Entity Bean?

What is Collection API?

What is similarities/difference between an Abstract class and Interface?

Interview Question: What is EJB container?

Interview Question: What is EJB client JAR file?

Interview Question: What is local interface. How values will be passed?

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

What are the call back methods in Session bean?

Latest Articles (in Interview)

Comment on this tutorial