Database Java Tutorial

You can check for a warning in three places:

The Connection object (java.sql.Connection)
      The Statement object (java.sql.Statement)
      The ResultSet object (java.sql.ResultSet)