1) What is true about 'Primary Key class' in Entity Beans ?
(a) Used to identify the entity bean based on EJB type, Home Interface and Container Context.
(b) Used to identify the entity bean based on EJB type, Remote Interface and Container Context.
(c) The definition of Primary Key class can be deferred till deployment
2) The Home Interface in Entity beans
(a) Provides at least one create() method
(b) May not provide any create() method
(c) Provides at least one findByPrimaryKey() method
(d) May not provide any findByPrimaryKey() method
3) In CMP of Entity beans
(a) Constructor with no arguments is defined
(b) Constructor is not defined
4) What is the purpose of ejbLoad()
5) What is the purpose of ejbStore()
6) In EJB, when a system error occurs, which exception is thrown ?
(a) EJBException
(b) RemoteException
7) In EJB, which of the following is an application level Exception ?
(a) NullPointerException
(b) ArrayOutOfBoundsException
(c) CreateException
(d) ObjectNotFoundException
(e) All the above
(f) None of the above
8) CMP bean provides
(a) Empty implementation of ejbLoad() and ejbStore()
(a) Concrete implementation of ejbLoad() and ejbStore()
JSP and Mislleneous
1) What is the purpose of XSL
(a) Convert XML to HTML
(b) Convert HTML to XML
ANS: (a)
2) resultSet has the following methods
(a) next()
(b) first()
(c) a & b
(d) No methods
3) In WebLogic clusters, what is the load balancing algorithm ?
(a) RoundRobin
(b) FIFO
(c) LIFO
ANS: (a)
WebLogic uses a Round-Robin strategy as default algorithm for forwarding the HTTP requests
inside a cluster. Weight-based and random algorithms are also available.
4) How many Queues does a MDB listen to ?
(a) 1
(b) 2
(c) Any Number
(d) 10
ANS: (a)
An MDB can be associated with only one Queue or Topic
5) Where is the Deployment Descriptor placed ?
(a) WEB-INF directory
(b) WEB-INF/CLASSES directory
(c) It will be mentioned in CLASSPATH
(d) The place can be specified in APPLICATION.xml
6) To denote distributed applications, What is the tag used in Deployment Descriptor ?
(a) distributable
(d) distributed="true"
(c) both a & b
7) Can a JSP be converted to SERVLET and the vice versa always ?
(a) YES
(b) NO
8) Empty JSP Tag definitions are given in Deployment Descriptor. Then which of the following
syntaxes are correct ?
9) One small question on
No comments:
Post a Comment