0 votes
in Spring by

Which exception hierarchy does Spring JDBC use for database-related errors?

a) SQLException

b) DataAccessException

c) JDBCException

d) DatabaseException

1 Answer

0 votes
by
b) DataAccessException

Explanation:

Spring JDBC uses the DataAccessException hierarchy to provide a more consistent error-handling mechanism, abstracting database-specific error codes.
...