Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

EJB Interview Questions and Answers

  Difficulty Level: AllBeginnerIntermediateExperienced/Expert

Ques 1. What do you mean by EJB?

Ques 2. What are the different types of EJB?

Ques 3. Explain the life cycle method of EJB?

Ques 4. What is the difference between EAR, JAR and WAR file?

Ques 5. What is Session Bean?

Ques 6. What is Entity Bean?

Ques 7. What is EJB container?

Ques 8. What is EJB server?

Ques 9. What is EJB role in J2EE?

Ques 10. What is an EJB Context?

Ques 11. What are the different kinds of enterprise beans?

Ques 12. What are the methods of Entity Bean?

Ques 13. What is the difference between Container-Managed Persistent (CMP) bean and Bean-Managed Persistent(BMP)?

Ques 14. What are the callback methods in Entity beans?

Ques 15. What is software architecture of EJB?

Ques 16. Can Entity Beans have no create() methods?

Ques 17. What is bean managed transaction?

Ques 18. What are transaction attributes?

Ques 19. What are transaction isolation levels in EJB?

Ques 20. can we have static initializer Block in EJB?

Ques 21. Is threading is possible in EJB?

Ques 22. What is connection pooling feature of EJB container?

Ques 23. What is Session facade?

Ques 24. What are the transaction Attribute?

Ques 25. Difference Between ejbStore() and ejbLoad()?

Ques 26. What is the difference between JNDI context, Initial context, session context and ejb context?

Ques 27. What are the two important TCP Socket classes?

Ques 28. What technologies are included in J2EE?

Ques 29. What is the difference between EJB and Java beans?

Ques 30. What is in-memory replication?

Ques 31. What is Ripple Effect?

Ques 32. What is a Clone?

Ques 33. What are the types of Scaling?

Ques 34. What is a Server Group?

Ques 35. What’s new in the EJB 2.0 specification?

Ques 36. How can I access EJB from ASP?

Ques 37. What is the relationship between local interfaces and container-managed relationships?

Ques 38. What is EJBDoclet?

Ques 39. What is the difference between session and entity beans?

Ques 40. What are Local Interfaces? Explain.

Ques 41. Can Entity Beans have no create() methods?

Ques 42. What is software architecture of EJB?

Ques 43. What are the methods of Entity Bean?What is the difference between Container-Managed Persistent (CMP) bean and Bean-Managed Persistent(BMP)?

Ques 44. What are the methods of Entity Bean?

Ques 45. When should I adopt BMP and when I should use CMP?

Ques 46. Static variables in EJB should not be relied upon as they may break in clusters.Why?

Ques 47. Can I develop an Entity Bean without implementing the create() method in the home interface?

Ques 48. What is the need of Remote and Home interface. Why cant it be in one?

Ques 49. What is bean managed transaction?

Ques 50. How can I call one EJB from inside of another EJB?

Ques 51. What happens if remove( ) is never invoked on a session bean?

Ques 52. What is EJB QL?

Ques 53. Can the primary key in the entity bean be a Java primitive type such as int?

Ques 54. How EJB Invocation happens?

Ques 55. What are transaction attributes?

Ques 56. How can I call one EJB from inside of another EJB?

Ques 57. What is the difference between Message Driven Beans and Stateless Session beans?

Ques 58. Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?

Ques 59. What is the difference between find and select methods in EJB?

Ques 60. What is the difference between JavaBean and EJB?

Ques 61. What is abstract schema?

Ques 62. What is local interface. How values will be passed?

Ques 63. What is Message Driven Bean?

Ques 64. What are the services provided by container?

Ques 65. How many EJB Objects are created for a Bean?

Ques 66. What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

Ques 67. What is lazy loading?

Ques 68. Can I map more than one table in a CMP?

Ques 69. Is Decorator an EJB design pattern?

Ques 70. What is the difference between sessioncontext and entitycontext?

Ques 71. Does stateless Session bean create() method contain any parameters?

Ques 72. What is difference between EJB 1.1 and EJB 2.0?

Ques 73. Can a Session Bean be defined without ejbCreate() method?

Ques 74. What is the difference between ejbCreate() and ejbPostCreate?

Ques 75. Why does EJB needs two interfaces(Home and Remote Interface)?

Ques 76. What are the optional clauses in EJB QL?

Ques 77. Can I invoke Runtime.gc() in an EJB?

Ques 78. What is Remote client view?

Ques 79. What is Local client view?

Ques 80. What is EJB client JAR file?

©2023 WithoutBook