اختر لونك

a) pool.returnConnection(con) b) con.returnToPool() c) con.close() d) pool.release(con)

Here's an example of how to connect to a MySQL database using JDBC:

50 Time: 90 minutes

a) Compilation error b) Runtime error – Class not found c) Driver automatically registered, but it’s redundant d) Driver is not registered unless we call DriverManager.registerDriver()

(Detailed answers for D & E to be evaluated based on standard JDBC practices and Durga Sir’s notes – focus on proper resource handling, SQL injection prevention, transaction boundaries, and connection pooling concepts.)

a) TRANSACTION_READ_COMMITTED b) TRANSACTION_REPEATABLE_READ c) TRANSACTION_SERIALIZABLE d) TRANSACTION_READ_UNCOMMITTED