ejbCreate() method of CMP bean returns.
-
null
-
Primary Key class
-
Home Object
-
Remote Object
In EJB 2.x CMP, the container handles the actual creation of the record and the primary key. The ejbCreate method in a CMP bean is defined to return the primary key type, but the implementation must return null. The container then initializes the primary key and returns it to the client.
To answer this question, you need to understand the concept of CMP (Container-Managed Persistence) beans in Java Enterprise Edition (Java EE).
In Java EE, CMP beans are entity beans that are managed by the container. The ejbCreate() method is used to create and initialize an instance of a CMP bean.
The ejbCreate() method of a CMP bean does not return any value. It is a void method, meaning it does not have a return type. Therefore, the correct answer is A) null.