What are the basic exceptions in jdbc?



What are the basic exceptions in jdbc?..

Answer / Vikrant Kumar Gond

Some of the common JDBC exceptions include:
1. SQLException - a general exception for database access.
2. ClassNotFoundException - occurs when the class representing the driver is not found.
3. InstantiationException - thrown if an error occurs during the creation of a new object.
4. IllegalAccessException - occurs if the code tries to access a class or method that it does not have permission to access.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JDBC Interview Questions

What are the Isolation level in JDBC transaction?

1 Answers  


What is jdbc stand for?

1 Answers  


What are the basic exceptions in jdbc?

1 Answers  


Name the new features added in jdbc 4.0.

1 Answers  


What is connection pooling and why it is used?

1 Answers  


Does jdbc require oracle client?

1 Answers  


How do I load a database driver with JDBC 4.0 / Java 6?

1 Answers  


What is jdbc type?

1 Answers  


What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.

1 Answers  


In JDBC, All the API?s are interfaces? Where is the actual implementation?

3 Answers   HCL,


What are JDBC Best Practices?

1 Answers  


r u used any design patterns in your project?

3 Answers   Wipro,


Categories