DEVFYI - Developer Resource - FYI

What JDBC objects generate SQLWarnings?

JDBC Interview Questions and Answers


(Continued from previous question...)

What JDBC objects generate SQLWarnings?

Connections, Statements and ResultSets all have a getWarnings method that allows retrieval. Keep in mind that prior ResultSet warnings are cleared on each new read and prior Statement warnings are cleared with each new execution. getWarnings() itself does not clear existing warnings, but each object has a clearWarnings method.

(Continued on next question...)

Other Interview Questions