About Question enthuware.jwpv6.2.1081 :

Moderator: admin

Post Reply
sebastien
Posts: 12
Joined: Tue Mar 26, 2013 2:38 pm
Contact:

About Question enthuware.jwpv6.2.1081 :

Post by sebastien »

Hi,

maybe I'm wrong but I'm quite sure "class" have to be a super class of "type"

so second option is wrong and third is ok.

and the explanation is also wrong

please tell me if I'm wrong

Sébastien

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

Re: About Question enthuware.jwpv6.2.1081 :

Post by admin »

No, the given explanation is correct. Type can be a superclass. You may want to try it out.

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

asdf123
Posts: 1
Joined: Sun Jan 24, 2016 4:20 pm
Contact:

Re: About Question enthuware.jwpv6.2.1081 :

Post by asdf123 »

It does not specify for answer 3 that com.abc.SubclassOfMyBean is a subclass for com.abc.MyBean (like in answer 2).

So the correct aswers would be:
2. <jsp:useBean id="bean1" scope="session" class="com.abc.SubclassOfMyBean" type="com.abc.MyBean"/> is a valid usage of useBean action. (Given that SubclassOfMyBean is a subclass of MyBean.)

3. <jsp:useBean id="bean1" scope="session" class="com.abc.MyBean" type="com.abc.SubclassOfMyBean"/> is a valid usage of useBean action.

5. <jsp:useBean id="bean1" type="com.abc.MyBean" /> is a valid usage of useBean action.


If the "(Given that SubclassOfMyBean is a subclass of MyBean.)" would be inside the question or next to aswer 3 as well, correct ones would be 2 and 5.

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests