O'Reilly logo
  • A A thinks this is interesting:

A SQLException is thrown.

From

Cover of OCP Oracle® Certified Professional Java® SE 8 Programmer II

Note

This is the correct answer, as because the ResultSet type is TYPE_FORWARD_ONLY by default
And the test doesn’t specified the opposite