• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

ResuletSet question (Sybex)

 
Greenhorn
Posts: 9
1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm not sure where I should report this kind of errors.
I've found error in online mock exams for this book.
In batch 1 of online mock exams there is question 55 which is:
"Which of the following is least likely to be supported by your JDBC driver?"
the correct answer should be:
"E ResultSet.TYPE_SCROLL_SENSITIVE"

But if you check answer for this question it shows that answer B is correct, which is: ResultSet.CONCUR_UPDATABLE"

I think this should be corrected.
 
author & internet detective
Posts: 42003
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tahir,
This forum is the right place. I moved your post to a new thread so it isn't "buried" amongst comments that were addressed.  (If you aren't sure, starting a new thread is preferable).

The questions occur in random order each time, so the question # doesn't help. Luckily you provided enough context that I could find the question:

Which of the following is least likely to be supported by your JDBC driver?
A. ResultSet.CONCUR_READ_ONLY
B. ResultSet.CONCUR_UPDATABLE
C. ResultSet.TYPE_FORWARD_ONLY
D. ResultSet.TYPE_SCROLL_INSENSITIVE
E. ResultSet.TYPE_SCROLL_SENSITIVE



I was all set to write why B is correct. But it isn't. Our book event supports E as an answer. You are right. I left what I wrote crossed out below in case anyone is curious.

"Databases and JDBC drivers are not required to support CONCUR_UPDATABLE. Unlike TYPE_SCROLL_SENSITIVE, an updatable result set is at least used on rare occasions". Which is
 
Jeanne Boyarsky
author & internet detective
Posts: 42003
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And welcome to CodeRanch!
 
sunglasses are a type of coolness prosthetic. Check out the sunglasses on this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic