What are the basic exceptions in JDBC?

devquora
devquora

Posted On: Feb 22, 2018

 

There are mainly four exceptions which are:

  1. Java.sql.SQLWarning: This is the message popped for warning in SQL operations.
  2. Java.sql.DataTruncations: This is the exception when the data value is unexpectedly other that the exceeded MaxFieldSize.
  3. Java.sql.SQLException: It is the basic class for Java exceptions.
  4. Java.sql.BatchUpdateException: When the Batch operation fails, this exception is thrown.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    JDBC Interview Questions

    What is the full form of JDBC and what is its purpose?

    JDBC stands for Java Database connectivity which is an application that helps in connection for the programming of Java language...

    JDBC Interview Questions

    What do you understand by JDBC driver and explain its types?

    JDBC drivers are software that enables the Java application to connect with the database..