About Question enthuware.ocpjp.v7.2.1373 :
Moderators: Site Manager, fjwalraven
-
- Posts: 17
- Joined: Wed Jan 22, 2014 12:35 pm
- Contact:
About Question enthuware.ocpjp.v7.2.1373 :
Another reason code will not work is that rs.getString(0) is invalid.
-
- Posts: 60
- Joined: Wed Apr 23, 2014 6:38 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1373 :
To the point of the previous poster, it seems inaccurate to state "after the try block ends without any exception".
Note the certainty that invocation "getString(0)" will throw java.sql.SQLException: Invalid column index.
Please explain if possible. That throw is not mentioned in the explanation, and as said above the enunciated premise of the question does not seem to hold.
Note the certainty that invocation "getString(0)" will throw java.sql.SQLException: Invalid column index.
Please explain if possible. That throw is not mentioned in the explanation, and as said above the enunciated premise of the question does not seem to hold.
-
- Site Admin
- Posts: 10389
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1373 :
You are right. It has now been changed to getString(1).
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 1 guest