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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
tmak
Posts: 2
Joined: Wed Jun 27, 2012 12:18 am
Contact:

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

Post 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.

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

mopuffus
Posts: 22
Joined: Thu Jul 25, 2013 3:39 pm
Contact:

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

Post 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

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. Fixed.

thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests