About Question enthuware.ocpjp.v8.2.1910 :
Posted: Tue Jul 18, 2017 6:24 am
After reading the explanation, I still don't get what caused the exception at runtime. To the best of my knowledge, the rs will return 2 rows. The rs.next() moves the cursor to the 1st row, then rs.getString(1) will get the id at the 1st row in 1st column.
Anybody can help? Thank you in advance!
Anybody can help? Thank you in advance!