1. If there is a need to use relation join to improve system performance,
which EJB will be used ?
a. Stateful
b. CMP
c. Stateless
d. BMP
2. What is the use of DAO
in Fast Lane Reader pattern
a. Plug & Play
b. Hides code complexity
c. Easier to code
d. Access DB to get all
read-only data efficiently
3. Among the following
what are supported by entity? (CB)
a. Data encapsulation
b. Reusability
c. Over loading
d. Polymorphism
e. Inheritance
4. MDB holds conversation
state of client
a. True
b. False
5. Tom wants API that
removes persistent entity instance, finds entities, allows query to run on
entities. What should we refer to?
a. Database API
b. JNDI API
c. Serialize API
d. Entity Manager
6. Difference between JMS
server call and MDB from any client.
a. In MDB , JMS
connection factory look for DB home object
b. Client call to both
JMS server and MDB is same
c. None
d. Queue/Topics are
mapped to MDB
7. @SequenceGenerator(name=”book_sequence”,
sequenceName=”bookId”) public class Book implements Serializable
What is the sequence from which the sequence gets generated ?
a. Null
b. 0
c. 1(correct ans)
d. Exception thrown
8. What annotation is
used for openConnection method
a. @prePassivate(correct
ans)
@postConstruct
openConnection()
b. @postActivate
@postConstruct
openConnection()
c. @preActivate
openConnection()
d. @preActivate
@postDestroy
openConnection()
9. How are EJB references cached
a. EJB Home
b. EJB Home Interface
c. Persistence.xml
d. Servlets
10. How many types of
messaging are there
a. 7
b. 5
c. 4
d. 2
No comments:
Post a Comment
Thanks for your valuable comments