Which of the statements is true regarding loading a driver in JDBC.1.
registerDriver(Driver driver).2. Class.forName(java.lang.String
driverclass)
Both 1 and 2 are correct. A static block is written in every Driver class to register the driver, which gets executed when the class is loaded. Category:JDBC Interview Questions
No comments:
Post a Comment