Educational Questions & Answers

Sample Interview Questions For Enterprise Java Bean

Dear Visitors herewith we are listing some smaple expected questions asked during Interview Sessions. This Questions is only for your references. Refer the suitable books and prepare the answers for this questions for your satisfaction.

What is EJB?

How statefull session bean remembers it's client state?

When two entity beans are said to be identical?Which method is used to compare identical or not?

With EJB 1.1 specs, why is unsetSessionContext() not provided in Session Beans, like unsetEntityContext() in Entity Beans.

How to implement an entity bean which the PrimaryKey is an autonumeric?

How will you propagate exception thrown inside session bean to JSP or Servlet client ?

What is handle in EJB ?

What is EJB Query Language ?

What is the difference between CMP and BMP ?

What is the difference between normal Java object and EJB ?

Can we use instance variables in Stateless session beans? If yes, Why and How? If the answer is no , explain why and how?

Why CMP beans are abstract classes?

What is the difference between ejbStore() and ejbLoad() ?

How many EJB Objects are created for a Bean ?

If session has thrown ApplicaitonException would you use EJBContext.setRollBackOnly method

What is the difference between JNDI context, Initial context, session context and ejb context ?

What is ACID ?

What is the difference between JavaBean and EJB ?

How to insert new row and link like Edit and Delete ?

Is instance pooling necessary for entity beans?

What is the difference between ejbCreate() and ejbPostCreate() ?

What is abstract schema ?

Is Decorator an EJB design pattern ?

What is the difference between sessioncontext and entitycontext ?

What are the various isolation levels in a transaction and differences between them ?

What are the call back methods in Entity bean ?

What is Session Bean. What are the various types of Session Bean ?

Give a scenario where you have used stateless session beans and why was it necessary?

How can we call cmp?

Is stateless Sessiob bean create() method contains any parameters ?

What is re-entrant. Is session beans reentrant. Is entity beans reentrant ?

Can i map more than one table in a CMP ?

What is the difference between EAR, JAR and WAR file ?

What are the various transaction attributes and differences between them ?

When you will chose CMP and BMP ?

What is the difference between Stateful session bean and Stateless session bean ?

what is design pattern ? use ?

How can we call java beans in jsp?

Can I develop an Entity Bean without implementing the create() method in the home interface ?

Why an onMessage call in Message-driven bean is always a seperate transaction ?

What are simple rules that a Primary key class has to follow ?

What is deployment descriptor ?

What is the difference between activation and passivation ?

What are advantages and disadvantages of CMP and BMP ?

What is the life cycle of Stateful session bean ?

What is business delicate ? Use ? and what is session faced ? use ?

What happens while we interacting with page and immediately database fails?

What is EJB architecture(components) ?

Does Stateful Session bean support instance pooling ?

How is Stateful Session bean maintain their states with client ?

What is CMR ?

What is Instance pooling ?

What is difference between EJB 1.1 and EJB 2.0 ?

What are the call back methods in Session bean ?

what is requestdespatcher?

What is the difference b/w sendRedirect() and ?

Can undefined primary keys are possible with Entity beans?If so, what type is defined?

Why does EJB needs two interfaces(Home and Remote Interface) ?

Is it possible to invoke multiple Session beans from one Session bean using Reflection ?

What is the difference between CMP 1.1 and CMP 2.0 ?

What is the difference between HTTPSession and Stateful Session Bean ?

What is Message Driven Bean ?

When you will chose Stateful session bean and Stateless session bean ?

what is difference between servlet and jsp ?

What is the main use of using interface?

Can I invoke Runtime.gc() in an EJB ?

What is clustering. What are the different algorithms used for clustering ?

What is the difference between optimistic locking and pessimistic locking ?

How do you check whether the session is active in Stateful session bean ?

What is the life cycle of MDB ?

What is Entity Bean. What are the various types of Entity Bean ?

What is the difference between distributed transactions and Flat transactions in EJB?

Can a Session Bean be defined without ejbCreate() method ?

What is lazy loading ?

What is the difference between find and select methods in EJB ?

What is local interface. How values will be passed ?

What are the services provided by container ?

What are the optional clauses in EJB QL ?

What is the difference between local interface and remote interface ?

Sample Interview Questions For Enterprise Java Bean

Other Questions