In JDBC, a SQLWarning is a subclass of which of the following?
A.
JDBCException
B.
QueryException
C.
Connections
D.
SQLException
E.
Statements
F.
ResultSets
Explanation:
Quoted directly from Sun’s Java document site at
http//developer.java.sun.com/ An SQLWarning is a subclass of SQLException, but
is not thrown like other exceptions. The programmer must specifically ask forwarnings. Connections, Statements, and ResultSets all have a getWarnings(. method
that allows retrieval. There is also a clearWarnings(. method to avoid duplicate
retrievals. The SQLWarning class itself only adds the methods getNextWarning(.
and setNextWarning(..