Win a copy of Production-Ready Serverless (Operational Best Practices) this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Errata for OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide - Chapter 10 - #13  RSS feed

 
Ranch Hand
Posts: 51
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The explanation to question #13 says:

This means that rs is no longer open by the println,...



Should say:

This means that rs is no longer open by the rs.next(),...

 
Marshal
Posts: 63777
209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please supply the author's name to make it easier to identify the book. Please supply fuller details about the question, so those of us who don't have that book know what the problem is.
 
author & internet detective
Posts: 39195
725
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's my book. and Jorge is right. I've added it to the errata.

The gist is that the answer is correct. The code does in fact throw an exception because the ResultSet is closed. However, it does so a line earlier than we indicated.
 
It means our mission is in jeapordy! Quick, read this tiny ad!
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!