File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes EPractice Labs - Wrong answer???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "EPractice Labs - Wrong answer????" Watch "EPractice Labs - Wrong answer????" New topic
Author

EPractice Labs - Wrong answer????

Makesh Kumar Ramakrishnan
Ranch Hand

Joined: Jan 07, 2006
Posts: 88
The following Question is in the Mock Exam-1 of EPractice Lab.

Q: Which of the following are valid methods of an entity bean?

Choices given:

ejbCreate()
ejbPostCreate()
ejbStore()
ejbRemove()
findByPrimaryKey()

Correct Answers(by EPractice) - ejbCreate(), ejbStore(), ejbRemove()

My Answer: ejbStore and ejbRemove.

If ejbCreate() is an valid ejb method of Entity bean, then all of the choices given are valid methods. Please correct me if I am wrong?


Thanks,
[ October 10, 2006: Message edited by: Makesh Kumar Ramakrishnan ]

Makesh<br /> <br />SCJP | SCWCD | SCBCD | SCEA
william son
Greenhorn

Joined: Apr 20, 2006
Posts: 3
Could you please recheck the question with upper and lower cases?

Note that choice b is -->ejbPostcreate() not ejbPostCreate()

findByPrimaryKey() is part of home interface not bean class. Hence the choices A,C and D are correct.

~ Wlliam
Lars Behnke
Ranch Hand

Joined: May 09, 2006
Posts: 76
I agree with William. Howerever, the camelCase ejbPostCreate should be OK.
Makesh Kumar Ramakrishnan
Ranch Hand

Joined: Jan 07, 2006
Posts: 88
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...


Thanks,
Ganesan Ponnusamy
EPractice Labs Support
Ranch Hand

Joined: Nov 07, 2005
Posts: 249
Hi Makesh Kumar Ramakrishnan,

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.

If you have any queries regading the contents feel free to contact our content support at scea1exam@epractizelabs.com or scea23exam@epractizelabs.com.


Ganesan Ponnusamy Java Certification | Test Generator | OCAJP | OCPJP | OCEJWSD | EJB Certification
OCEJPAD | SCJD | SCWCD | SCBCD | SCDJWS | OCMJEA | Web Services Certification | SCMAD
Makesh Kumar Ramakrishnan
Ranch Hand

Joined: Jan 07, 2006
Posts: 88
Thanks for your reply Ganesan Ponnuswamy. I appologize for the direct Question post.
Ådne Brunborg
Ranch Hand

Joined: Aug 05, 2005
Posts: 208
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 EntityBean interface. But, the question is not "methods defined by the EntityBean interface", it is "valid methods of an entity bean".


Entia non sunt multiplicanda praeter necessitatem
 
wood burning stoves
 
subject: EPractice Labs - Wrong answer????
 
Similar Threads
transaction context
Doubts in Chapter-6 HF-EJB
EJB framework/callback methods and transaction contexts
Unspecified, but meaningful transaction?
Coffee Cream on EB - Mistakes/Doubts #4