🎴 Flashcard Mode
Programming Languages: Java, VBA, and SQL
Card1 / 20
Mastered0
Review0
QuestionClick to flip
ejbCreate() method of CMP bean returns
AnswerClick to flip back
A
null
💡 Explanation:
In EJB Container-Managed Persistence (CMP), the ejbCreate() method must return null (or the primary key type, but per the EJB specification, the container manages primary key generation/mapping and CMP bean's ejbCreate() returns null so the container can initialize the primary key). The Home Object and Remote Object are client-side references, not returned by bean lifecycle methods.