Sergej Smoljanov wrote:give advice why when i try i have no Exception
It seems that not all versions of every vendor's
JDBC implementation seems to be fully compliant with the contract defined by the main JDBC interfaces. You'll find examples
here,
here, and
here. That's why a note should be added somewhere in the (introductory) section of the JDBC chapter to make readers aware of these inconsistencies (so they are not surprised/confused when executing code snippets). Already added to
the errata overview.
Sergej Smoljanov wrote:and how answer to question what is result of execution on exam?
I didn't take the exam yet, so I don't know if you'll encounter similar questions on the actual exam. But if I encounter such question(s), I'll answer them according to the Java 7 API Specification (and thus what's mentioned in the K&B7 study guide) and not based on what I have experienced with a specific vendor implementation.
Hope it helps!
Kind regards,
Roel