Multiple choice technology programming languages

ejbCreate() method of CMP bean returns

  1. null

  2. Primary Key class

  3. Home Object

  4. Remote Object

Reveal answer Fill a bubble to check yourself
A Correct answer
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.