Wednesday, December 16, 2015

Enterprise Java Beans (EJB) test answers of 2016.

Find Complete and recently updated Correct Question and answers of Enterprise Java Beans (EJB). All Answers updated regularly with new questions. Upwork Enterprise Java Beans (EJB) test answers of 2016.



Question:* Where are the EJB classes utilized by applications retained?

Answer: • Within the javax.ejb package.

Question:* Can underlying table schemas be changed automatically by your EJB container?

Answer: • Yes, but they must be configured to do so.

Question:* ______ beans represent persistent data storage.

Answer: • Entity

Question:* What is CMC?

Answer: • Container-managed concurrency.

Question:* How are stateless session beans different than stateful session beans?

Answer: • They are automatically thread-safe.

Question:* True or False? A bean class can fire off any type of event except custom events.

Answer: • False

Question:* ______ bean supports asynchronous execution.

Answer: • Message Driven

Question:* True or False? The properties of a bean affect its appearance or internal state.

Answer: • True

Question:* What has replaced the deployment descriptor in the newest version of EJB, 3.0?

Answer: • Java annotations.

Question:* What is an example of a stateful session bean process?

Answer: • The checkout process in a web store.

Question:* Object _____ means converting an object into a data stream and writing it to storage.

Answer: • serialization

Question:* What kind of programming does Java Message Service provide for EJB?

Answer: • Event-driven programming.

Question:* The _______ is the most common exception class.

Answer: • EJBException

Question:* _______ provides a means for modifying the appearance and behavior of a bean within an application builder so it meets your specific needs.

Answer: • Customization

Question:* _______ class does not support serialization.

Answer: • Thread

Question:* What is the EJB container responsible for assigning?

Answer: • JNDI names for EJB session beans.

Question:* How are EJB's two interfaces referred to?

Answer: • Home and Remote.

Question:* What is the javax.ejb.spi package used for?

Answer: • A service provider interface.

Question:* Beans are distributed as ____ files.

Answer: • JAR

Question:* What happens if two calling clients attempt to access a single bean?

Answer: • The requests are serialized by a container.

Question:* True or False? For the class to be serializable, you must implement the Serializable interface in your class even if it is already implemented in a superclass.

Answer: • False

Question:* _____ is NOT a method of the EntityBean Interface.

Answer: • ejbNewBean()

Question:* What three files are used to control WebLogic Server EJB?

Answer: • ejb-jar.xml, weblogic-ejb-jar.xml, weblogic-cmp-jar.xml

Question:* A ____ tag is used to represent an instance of a class in an XML bean archive.

Answer: • <class>

Question:* A bean _______ is the code responsible for managing beans and the various interfaces.

Answer: • container

Question:* _____ is not an EJB interface.

Answer: • BeanContext

Question:* What is responsible for the user interface logic on a client machine?

Answer: • EJB Client.

Question:* What is lock annotation used for?

Answer: • It is used to decide whether a read lock or write lock is utilized in a method call.

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

Answer: • Serializable or Externalizable

Question:* Do clients of EJB instantiate beans directly?

Answer: • No. They need a reference from the EJB container.

Question:* When injection is not available, what is the alternative?

Answer: • Java Naming and Directory Interface

Question:* _____ bean stores data for a particular user for a single session.

Answer: • Session

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

Answer: • Deployment Descriptor

Question:* What is asynchronous pattern?

Answer: • The non synchronous operation of business services within EJB.

Question:* True or False? EJB is a client-side model that encapsulates the business logic of an application.

Answer: • False

Question:* What does it mean when business objects have a state?

Answer: • They are limited to a single client at a time.

Question:* What is concurrency control?

Answer: • The ensuring that two operations within EJB are generated correctly.

Question:* What is another name for a deployment descriptor?

Answer: • Configuration file.

Question:* What bean represents real-world objects?

Answer: • Entity bean.

Question:* True or False? A session bean can only be stateless.

Answer: • False

Question:* True or False? A boolean property in a bean class must have a public get method.

Answer: • False

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

Answer: • EJB Server.

Question:* What are ACID transactions responsible for?

Answer: • Reliable database transactions.

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

Answer: • ejbActivate()

Question:* True or False? Enterprise Java 2.0 specification introduces the concept of local beans.

Answer: • True

Question:* Does WebLogic server support multiple methods?

Answer: • Yes.

Question:* What is RMI-IIOP?

Answer: • Java Remote Method Invocation interface.

Question:* _______ is not a tag used in an XML bean archive to define a primitive type.

Answer: • <object>

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

Answer: • ejb-jar.xml

Question:* EJB applications are deployed on a ____ compliant Application Server.

Answer: • J2EE

Question:* EJB stands for ________.

Answer: • Enterprise Java Beans

Question:* What format is the deployment descriptor document in?

Answer: • XML

Question:* EJB is a framework for _____.

Answer: • Java

Question:* Which of the following is a JNDI scope?

Answer: • Module

Question:* What file format are all of the descriptor files in?

Answer: • XML

Question:* Which of the following is one of WebLogic Server's caching abilities?

Answer: • Caching between transactions.

Question:* What two security mechanisms does EJB primarily use?

Answer: • JCE and JAAS

Question:* True or False? Any public method that is not part of a property definition is a bean method.

Answer: • True

Question:* When is it ideal to use a singleton session bean?

Answer: • When the list you will be using is static, such as a price list.

Question:* True or False? Client code can access local beans.

Answer: • False

Question:* A ______ class for a bean changes how a bean appears in the builder tool by telling which properties should be listed first or which should be hidden.

Answer: • BeanInfo

Question:* A ______ property consults listeners before making a change and any one of the listeners may veto the change.

Answer: • constrained

Question:* If a bean is handling transactions via JTA API, what is happening?

Answer: • It is handling the transaction rather than a container.

Question:* True or False? Enterprise Java bean is a form of Java bean.

Answer: • False

Question:* ______ is an advantage of a session bean over an entity bean.

Answer: • A session bean is less resource intensive.

Question:* The ______ is an abstract representation of the container system to access a bean through methods that manage actions of the bean.

Answer: • home interface

Question:* Are CMTs active, or passive?

Answer: • Active.

Question:* Are class methods declared by the Home interface tied to a specific instance?

Answer: • No.

Question:* Use the ______ interface when you need complete control over your bean's serialization.

Answer: • Externalizable

Question:* True or False? When an Application Exception occurs, the ejb container intercepts the exception, rolls back the transaction, and starts the clean up tasks.

Answer: • False

Question:* A ______ property notifies listeners when its value changes.

Answer: • bound

Question:* How many clients can access a stateless session bean?

Answer: • One.

Question:* When you create a combination of read-only and read-write EJBs, what pattern are you creating?

Answer: • Read-mostly.

Question:* True or False? EJB technology allows users to isolate their business logic away from the data layer by storing with the presentation layer.

Answer: • False

Question:* The listener type of an event must be a descendent of _______.

Answer: • java.util.EventListener

Question:* What happens if concurrent access is attempted on a single bean?

Answer: • The request is rerouted to a different interest by the container.

Question:* _______ is not true of customizers.

Answer: • Extend the java.beans.Customizer interface.

Question:* _____ is a model that enables beans to be saved in an XML format.

Answer: • Long-term persistence

Question:* What is EJB's transaction processing responsible for?

Answer: • It divides the processed information into smaller pieces.

Question:* EJB's remote interfaces are split into what two groups?

Answer: • Class and Instance methods.



No comments:

HTML5 Upwork (oDesk) TEST ANSWERS 2022

HTML5 Upwork (oDesk) TEST ANSWERS 2022 Question: Which of the following is the best method to detect HTML5 Canvas support in web br...

Disqus for upwork test answers