Page 1 of 1

About Question enthuware.ocpjp.v8.2.1197 : probably typos

Posted: Tue Feb 06, 2018 4:03 pm
by jankur
Hi, probably there are some typos in the explanation: there is Savepoint interface, not SavePoint, and there is Connection.setSavepoint method, not Connection.setSavePoint:
The SavePoint feature of JDBC is tailor made for this purpose.
and
SavePoint savePoint1 = connection.setSavePoint("step1done");
Additionally: comments could be changed from \\1 and \\2 (now they don't compile) to //1 and //2 respectively in:
stmt.executeUpdate("update student set status=1"); \\1
[...]
stmt.executeUpdate("update student set gpa=4.0"); \\2

Re: About Question enthuware.ocpjp.v8.2.1197 : probably typo

Posted: Tue Feb 06, 2018 10:29 pm
by admin
You are right. Fixed.
thank you for your feedback!