Hi, p363,Q5 the correct option is shown as choice B. reason on p368 as: "it(the ejbcreate()) can't be -static,void,final, must return the type of primary key." My question is whats wrong with option D?. its return type is int, yes, but why cant that ever be the primary key return type?
hi, Refer to the spec.In the dd you need to mention the primary key class and primary key field.Further,it mentions the primary key type need to have hashCode and equals.
The Bean Provider must specify a primary key class in the deployment descriptor.The primary key type must be a legal Value Type in RMI-IIOP. The class must provide suitable implementation of the hashCode() and equals(Object other) methods to simplify the management of the primary keys by client code.
With Regards,<br /> Rajan<br />"Java Rocks"
That's a very big dog. I think I want to go home now and hug this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop