(Paper) JSP and EJB Interview Questions

Interview Question Paper Of EJB and JSP
EJB:-
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)
- guru's blog
- Login to post comments
