πŸ§ͺ EJB MCQ Quiz Hub

EJB MCQ - Java Technologies

Choose a topic to test your knowledge and improve your EJB skills

Which of the following statements is not correct for an Enterprise Java Bean?





βœ… Correct Answer: 3

Where are the EJB classes utilized by applications retained?





βœ… Correct Answer: 1

The _______ is the most common exception class.





βœ… Correct Answer: 1

The _______ is the most common exception class.





βœ… Correct Answer: 1

The _______ file is an XML file used to describe the properties of a bean.





βœ… Correct Answer: 3

______ is not a tag used in an XML bean archive to define a primitive type.





βœ… Correct Answer: 4

How many types of enterprise bean in java?





βœ… Correct Answer: 2

________ encapsulates business logic.





βœ… Correct Answer: 4

How many types of session bean?





βœ… Correct Answer: 3

A Stateless session bean is a business object that doesn't maintain the conversational state with the client.





βœ… Correct Answer: 1

______ is a messaging service to create, send and receive messages asynchronously.





βœ… Correct Answer: 2

What are the advantages of JMS?





βœ… Correct Answer: 3

In ___________, one message is delivered to one receiver only.





βœ… Correct Answer: 4

In which model, one message is delivered to all subscribers?





βœ… Correct Answer: 3

Message Driven Bean (MDB) encapsulates business logic. It is invoked by passing the message. It is like JMS receiver.





βœ… Correct Answer: 1

Which of the following annotation is used to specify or inject a dependency as ejb instance into another ejb?





βœ… Correct Answer: 4

The EJB specification architecture does NOT define





βœ… Correct Answer: 2

Which of the following is true?





βœ… Correct Answer: 1

. Which EJB container must provide an implementation of Java Naming and Directory Interface (JNDI) API to provide naming services for EJB clients and components?





βœ… Correct Answer: 3

Which statement about session beans is true?





βœ… Correct Answer: 3

Which case of a session bean obtains the UserTransaction object via the EJBContext using the getUserTransaction() method in EJB transaction management?





βœ… Correct Answer: 1

The Spring support classes facilitate building session beans





βœ… Correct Answer: 4

. What happens when you pass a serialized object as an argument or return value that doesn't exist either in the Client or the Server?





βœ… Correct Answer: 3

An different programming language like C ,C++ etc.





βœ… Correct Answer: 2

Abbreviate the term JMS?





βœ… Correct Answer: 1

Session beans don't have





βœ… Correct Answer: 1

An entity bean's local interface MUST extend the ________ interface.





βœ… Correct Answer: 1

Which component does the Entity bean represent the persistent data stored in the database?





βœ… Correct Answer: 1

Which server-side component is required to be deployed on the server?





βœ… Correct Answer: 1

To expose a service through RMI, you have to create the service interface that extends





βœ… Correct Answer: 1

OpenEJB 3.1.1 supports





βœ… Correct Answer: 3

From the following APIs, which API does NOT guarantees to be supported by EJB 2.0 containers?





βœ… Correct Answer: 3

What is returned by the method ejbCreate() CMP bean?





βœ… Correct Answer: 1

What executes EJB components?





βœ… Correct Answer: 3

How can a EJB pass it's reference to another EJB ? Which of the following is correct syntax for an Abstract class?





βœ… Correct Answer: 3

Choose different kinds of enterprise beans in EJB from following





βœ… Correct Answer: 4

At what point, precisely, in the life-cycle is a container-managed entity bean considered created?





βœ… Correct Answer: 2

Which middleware services are provided by EJB?





βœ… Correct Answer: 3

For remote objects Java passes objects:





βœ… Correct Answer: 4

remove() method of the Entity bean?





βœ… Correct Answer: 2

The _______ file is an XML file used to describe the properties of a bean.





βœ… Correct Answer: 3

EJB applications are deployed on a ____ compliant Application Server.





βœ… Correct Answer: 2

What is RMI-IIOP?





βœ… Correct Answer: 2

What format is the deployment descriptor document in?





βœ… Correct Answer: 1

What file format are all of the descriptor files in?





βœ… Correct Answer: 4

EJB is a framework for _____





βœ… Correct Answer: 1

If you wanted to control the WebLogic Server EJB’s configuration, what is one of the files you would use?





βœ… Correct Answer: 4

What is another name for a deployment descriptor?





βœ… Correct Answer: 1

What is concurrency control?





βœ… Correct Answer: 1

What is concurrency control?





βœ… Correct Answer: 1

What is CMC?





βœ… Correct Answer: 1

In passivation, the opposite method from ejbPassivate() is _______.





βœ… Correct Answer: 3

In passivation, the opposite method from ejbPassivate() is _______.





βœ… Correct Answer: 3

Which of the following contains the EJB container that provides the services for the EJB component?





βœ… Correct Answer: 3

What are ACID transactions responsible for?





βœ… Correct Answer: 1

When injection is not available, what is the alternative?





βœ… Correct Answer: 4

What does it mean when business objects have a state?





βœ… Correct Answer: 4

What bean represents real-world objects?





βœ… Correct Answer: 1

A class is serializable if a class's inheritance hierarchy implements _________.





βœ… Correct Answer: 2

Do clients of EJB instantiate beans directly?





βœ… Correct Answer: 2