• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp:useBean question from JWeb+

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I must have some older version.
It's good that they corrected it though.
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I mistyped it.
I meant of course that you can't do that.
 
reply
    Bookmark Topic Watch Topic
  • New Topic