How do you know in your Java program that a SQL warning is generated as a result of executing a SQL statement in the database?
You must catch the checked SQLException which is thrown by the method which executes
You must catch the unchecked SQLWarningException which is thrown by the method
You must invoke the getWarnings() method on the Statement object (or a sub interface
You must query the ResultSet object about possible warnings generated by the database