हाँ, वहाँ है:https://dba.stackexchange.com/a/44373/5457ए>
Statement stmt = ...;
stmt.execute("some sql statement");
SQLWarning warning = stmt.getWarnings();
while (warning != null) {
System.out.println(warning.getMessage());
warning = warning.getNextWarning();
}