Objective Java Multiple Choice Questions Part 8 | URDINESH

Software Programming, Tutorials, Interview Preparations,Stock Market,BSE/NSE, General informations

Friday, May 23, 2014

Objective Java Multiple Choice Questions Part 8


71. Who is Consumer in Topic..?
       Topic Destruction.
       Topic subscriber
       Topic Messages.
       Topic publisher.
       Topic consumer.

72      @version is used in  beans that change less frequently.
True
false

73.  MDBs are like ______
Stateless beans

74.     A large code regarding bean managed transaction (check for the comments)
The answer is the option “ut=sc.getTransaction(); // to get transaction from sessioncontext”

75. MDBs used which of the annotations
a.       Postconstruct
b.       Predestroy
     @Resource @MessageDriven

76. Select one of the options dat best describes Entity beans(so many options with large codes will be given)
 The answer is mostly “IT’S A POJO CLASS WITH ANNOTATIONS”
77. Diff between stateless and stateful bean:
Stateful can use return values of one method in another but stateless cant do it

78.     Which is not a valid bean state?
a.       Does Not Exist
b.       Ready
c.       Pooled
d.       No State



79. Which is a client of a session bean implementing local interface?
a.       Session,entity and MDB
b.       Stateless bean
c.       Stateful bean
d.       Client class must have a jndi lookup
e.   mdb(could be)

80.     How to convert an MDB from stateless to stateful.
a.      Cannot be done


No comments:

Post a Comment

Thanks for your valuable comments

Followers