Forums Register Login

Question from ejbcertificate.com

+Pie Number of slices to send: Send
Which of the following methods must the entity bean provider implement in the abstract entity bean class? [Check all correct answers]


1 The entity bean provider must provide a public constructor without arguments.
2 The entity bean provider must provide at least one implementation for the ejbCreate() method.
3 The entity bean provider must provide the implementation of the ejbFind() method(s).
4 The entity bean provider must provide the implementation of the ejbHome() method(s).
5 The entity bean provider must provide at least one ejbSelect() method.

The aorrect answer as per them is 1 + 4.

I feel only 4 should be the answer.
EJB provider need not provide constructor with no args. Since, if we dont provide the constructor at all with java rules default no arg constructor is provided.

Please comment. Your inputs on this are appreciated.
Thanks,
Gemini
+Pie Number of slices to send: Send
 

Originally posted by Gemini Moses:


1 The entity bean provider must provide a public constructor without arguments.



Yea. It would be more correct, if the answer were "The entity bean provider must not provide any other constructor other than a public non argument one".
[ March 10, 2005: Message edited by: -Sanju Thomas- ]
+Pie Number of slices to send: Send
THanks Sanju for your reply.

Hope we wont get some such questions/ answers in real exam!!

Thanks once again!

Gemini
+Pie Number of slices to send: Send
Can entity bean class be abstract? What would be the purpose for that?
+Pie Number of slices to send: Send
Entity Bean class MUSt be declared as abstract by the bean provider.

Container implements abstrcat getter and setter methods from the bean class at delpoy time by using information provided by bean provider and assemblor in deployment descriptor.

Hope it helps!

Gemini
+Pie Number of slices to send: Send
Oops...I'm sorry...such a stupid question to ask...i forgot @ it...
Is that a spider in your hair? Here, threaten it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 713 times.
Similar Threads
ejbcertificate mock exam question.
mock question : Please clarify
Programming restrictions of Bean Provider
Entity Bean...Default Constructor....
Some quick questions
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:48:36.