가장 많이 묻는 면접 질문과 답변 & 온라인 테스트
면접 준비, 온라인 테스트, 튜토리얼, 라이브 연습을 위한 학습 플랫폼

집중 학습 경로, 모의고사, 면접 준비 콘텐츠로 실력을 키우세요.

WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.

Prepare Interview

모의 시험

홈페이지로 설정

이 페이지 북마크

이메일 주소 구독

EJB 면접 질문과 답변

Test your skills through the online practice test: EJB Quiz Online Practice Test

관련 차이점

관련 차이점

EJB 2.0 vs EJB 3.0EJB 3.0 vs SpringEJB 1.0 vs EJB 2.0
JavaBeans vs EJB

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

The bulk of the changes in EJB 2.0 are found in the definition of a new CMP component model. Its radically different from the old CMP model because it introduces an entirely new participant, the persistence manager, and a completely new way of defining container-managed fields, as well as relationships with other beans and dependent objects.

도움이 되었나요? Add Comment View Comments
 

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

The ejbCreate() methods is part of the beans lifecycle, so, the compiler will not return an error because there is no ejbCreate() method.
However, the J2EE spec is explicit:
the home interface of a Stateless Session Bean must have a single create() method with no arguments,
while the session bean class must contain exactly one ejbCreate() method, also without arguments.
Stateful Session Beans can have arguments (more than one create method)

도움이 되었나요? Add Comment View Comments
 

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

The purpose of ejbPostCreate() is to perform clean-up database operations after SQL INSERTs (which occur when ejbCreate() is called) when working with CMP entity beans. ejbCreate() is called before database INSERT operations. You need to use ejbPostCreate() to define operations, like set a flag, after INSERT completes successfully.

도움이 되었나요? Add Comment View Comments
 

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

There is a pure division of roles between the two .
Home Interface is the way to communicate with the container which is responsible for creating , locating and removing beans and Remote Interface is the link to the bean that allows acces to all methods and members.

도움이 되었나요? Add Comment View Comments
 

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

WHERE and ORDERBY clauses are optional in EJB QL where as SELECT and FROM are required clauses.

도움이 되었나요? Add Comment View Comments
 

Most helpful rated by users:

Copyright © 2026, WithoutBook.