• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:useBean question from JWeb+

 
See El
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a question from JWeb+ :
------------------------------------------------
Question ID :997972917007
For this jsp code to compile and run which of the given options should be true?
<jsp:useBean class="com.bookstore.Book" id="book" />
Select all 2 correct Choices...
a) Book cannot be an abstract class.
b) Book cannot be an interface.
c) Book can be a final class.
d) Book must be a final class.
e) Book cannot extend from java.lang.Thread
I would say there is 3 correct answer a, b, c
but the right answer is b,c ???
The a is certainly correct for me as you can NOT instantiate abstract class.
This looks like a mistake in the program...
Any comments ?
[ November 12, 2002: Message edited by: See El ]
[ November 14, 2002: Message edited by: See El ]
 
trupti nigam
Ranch Hand
Posts: 627
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi SEE,
I do have jweb+ and I do remember this question but according to my version of jweb+ the correct answers are a,b,c..
I purchased it 1 week back..
thanks,
Trupti
 
See El
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I must have some older version.
It's good that they corrected it though.
 
k space
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by See El:
The a is certainly correct for me as you can instantiate abstract class.

I am sorry, but how can you instantiate an abstract class.
 
See El
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I mistyped it.
I meant of course that you can't do that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic