This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I agree with William. Howerever, the camelCase ejbPostCreate should be OK.
Makesh Kumar Ramakrishnan
Ranch Hand
Joined: Jan 07, 2006
Posts: 88
posted
0
ejbCreate() is not part of EntityBean class. Please refer the Java API. But it's need to be defined in "implemented" entity bean class(ie.. Class implements EntityBean) for each create method in home interface.
Choice B is ejbPostCreate() - This method is not in EJBHome interface. But the "implemented" entity bean should have this method for each create method in Home interface.
findByPrimaryKey() is not part of EJBHome method. but it is mandatory to declare it in EJBHome of an entity bean.
Hence, ejbStore() and ejbRemove are the two correct choices for the given question. Please correct if I am wrong...
Please find the actual question (with proper cases)
Q: Which of the following are valid methods of an entity bean?
Choices given:
Choice A: ejbCreate() Choice B: ejbPostcreate() (note that c is in small case) Choice C: ejbStore() Choice D: ejbRemove() Choice E: findByPrimaryKey()
Choice A: ejbCreate() � correct Choice B: ejbPostcreate() �incorrect, because c is in small case Choice C: ejbStore() - correct Choice D: ejbRemove()- correct Choice E: findByPrimaryKey()-incorrect (not a EJB Bean class method)
Hence Choice A, Choice C and Choice D are correct answers.
Thanks for using SCEA Exam EPractize Labs for your preparation.
Please avoid posting direct questions from EPractize Labs in forums.
Originally posted by Makesh Kumar Ramakrishnan: ejbCreate() is not part of EntityBean class. Please refer the Java API. But it's need to be defined in "implemented" entity bean class(ie.. Class implements EntityBean) for each create method in home interface.
ejbCreate is not part of the EntityBeaninterface. But, the question is not "methods defined by the EntityBean interface", it is "valid methods of an entity bean".