PrepAway - Latest Free Exam Questions & Answers

what method can you use to avoid duplicate retrievals of the SQL warnings?

In JDBC, what method can you use to avoid duplicate retrievals of the SQL
warnings?

PrepAway - Latest Free Exam Questions & Answers

A.
clearWarnings(.

B.
GetUniqueWarnings(.

C.
UniqueWarnings(.

D.
getNextWarning(.

E.
setNextWarning(.

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 for
warnings. 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(..


Leave a Reply