Enterprise JAVA MCQs with answer and explanation

Enterprise Java Questions and Answers Set 1

Set 1           Set 2           Set 3

1. Which of the following is the format for EJB deployment descriptor files?   

(a) XML 
(b) XSL
(c) HTML
(d) Java
(e) DHTML.

2. EJB is a        

(a) Middleware
(b) Scalable component architecture
(c) Component architecture to integrate legacy systems
(d) Component architecture to encapsulate business logic
(e) All of the above.

3. Which of the following EJB has no state?     

i. Message-Driven Bean. 
ii. BMP Entity Bean.
iii. Stateless Session Bean.
iv. Stateful Session Bean.

(a) Both (I) and (II) above 
(b) Both (II) and (III) above 
(c) Both (III) and (IV) above 
(d) Both (I) and (IV) above 
(e) Both (I) and (III) above.

4. Which of the following is true for EJB?    

(a) EJB is server-side component architecture for distributed applications in Java
(b) EJB facilitates scalable, secure and transaction-oriented applications
(c) EJB supports portability and reusability
(d) EJB specification allows different vendor implementation of it
(e) All of the above.

5. Which of the following EJB type has no Remote interfaces?   

(a) Message-Driven Bean
(b) BMP Entity Bean
(c) CMP Entity Bean
(d) Session Bean
(e) Sessionless Bean.

6. Which role in EJB architecture is responsible for EJB Server?    

(a) EJB Deployer
(b) Application Assembler
(c) Network Engineer
(d) Server Provider
(e) Tool Vendor.

7. Which of the EJB has a passive state in its life cycle?                                                                                                       

I. Stateless Session Bean.
II. Message-Driven Bean. 
III. BMP Entity Bean.

(a) Only (I) above 
(b) Only (II) above 
(c) Only (III) above
(d) Both (I) and (II) above
(e) Both (II) and (III) above.

8. Which part of multi-tier enterprise application contains EJB component?     

(a) Application Server
(b) Web Server
(c) Database Server
(d) Fat Client
(e) Thin Client.

9. Which of the following distributed object technology is/are not included in Java? 


(a) Only (I) above 
(b) Only (II) above 
(c) Only (III) above 
(d) Only (IV) above
(e) All (I), (II), (III) and (IV) above.

10. Which of the following is not a property of EJB transaction? 

(a) Atomicity 
(b) Consistency 
(c) Isolation
(d) Distributed
(e) Durability.


 Answer                             Explanation

1.          A          The format for EJB deployment descriptor files is XML.

2.          E          EJB  is  a  middleware,  Scalable  component  architecture,  Component 
                          architecture  to  integrate  legacy systems, Component architecture to 
                          encapsulate business logic.

3.          E          Message Driven bean and stateless session bean has no state.

4.          E          All the above statements are true with respect to EJB.

5.          A          Message driven bean has no remote interface.

6.          D          Server provider is responsible for EJB server.

7.          C          BMP Entity Bean has a passive state in its life cycle.

8.          A          Application server contains ejb component.

9.          B          DCOM is a Microsoft object technology.

10.        D         Distributed is not a property of EJB transaction.


  1. Check here to practice with more java interview questions & other IT Technical,aptitude questions @ http://skillgun.com

  2. Java Beans Interview Questions and Answers

  3. this is really too useful and have more ideas from yours. keep sharing many techniques. eagerly waiting for your new blog and useful information. keep doing more.
    PTE Training in Chennai
    PTE Coaching in Chennai

  4. perfect explanation about java programming .its very useful.thanks for your valuable information.java training in chennai | java training in velachery