1. If the programmer gives the wrong user name and password in the database connection, what exception will JDBC throw (
Posted: Thu Jun 02, 2022 8:40 am
Statement (d) ResultSet 3. The following describes the JDBC API incorrectly () (a) The getconnection () method of the drivermanager interface can establish a connection with the database (b) The createstatement() method of the connection interface can create a statement object (c) The executeQuery () method of the statement interface can send a select statement to the database (d) The resultset interface represents the result set after the insert statement is executed
1. If the programmer gives the wrong user name and password in the database connection, what exception will JDBC throw () (a) ClassNotFoundException (b) SQLException (d) AttributeException (c) NullPointerException 2. In a JDBC database connection, to execute a stored procedure stored in the database, which of the following should be used () (a) CallableStatement (b) PreparedStatement (c)