Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.516 :

Posted: Thu Jun 28, 2012 11:33 am
by tmak
A stateless session bean do not need to have a constructor, so the answer
"It must have a constructor that takes no parameter." is also false.

Re: About Question enthuware.oce-ejbd.v6.2.516 :

Posted: Thu Jun 28, 2012 3:52 pm
by admin
Every class must have a constructor. You either define it explicitly or the compiler will add a no arg constructor for you. So the option is correct.

Re: About Question enthuware.oce-ejbd.v6.2.516 :

Posted: Sat Aug 17, 2013 10:43 am
by mopuffus
Hi,

The following answer (marked as correct)
It must have a constructor that takes no parameter.
for the question
Which of the following statements are true for a stateless session bean?
is wrong.

According with the specification 4.9.2.

Code: Select all

The class must have a public constructor that takes no parameters. The container uses this constructor to create instances of the session bean class.
IMHO the answer need to be :It must have a public constructor that takes no parameter.

Best Regards,
Mihai

Re: About Question enthuware.oce-ejbd.v6.2.516 :

Posted: Sat Aug 17, 2013 6:21 pm
by admin
You are right. Fixed.

thank you for your feedback!
Paul.