I've updated the
errata to reference this question. The answer is "complicated" so my fix is to change that answer to "compiles, but is incorrect."
It actually does throw a SQLException ion my exam. But that is an artifact of the
test data which isn't fair to include in the question.