1.

Give few examples of most common exceptions in JDBC.

Answer»

Some of the most common JDBC exceptions are GIVEN below:

  • java.sql.SQLException - It is the base class for JDBC exceptions.
  • java.sql.BatchUpdateException – It occurs during the batch update operation. May DEPEND on the JDBC driver TYPE that the base SQLException may throw instead.
  • java.sql.SQLWarning – It is displayed as a warning MESSAGE of various SQL operations.
  • java.sql.DataTruncation – This exception occurs when data values are unexpectedly truncated due to reasons independent of EXCEEDING MaxFieldSize.


Discussion

No Comment Found