Test Status
      JDBCRANDOMTEST
      (A) Type 4
      (B) Type 3
      (C) Type 2
      (D) Type 1
      (A) When a connection is created, it is in auto-commit mode.
      (B) If the value is true each individual SQL statement is treated as a transaction and will be automatically committed right after it is executed.
      (C) once auto-commit mode is disabled, no SQL statements will be committed until you call the method commit explicitly
      (D) By default the JDBC call is in auto-commit mode.
      (A) Type 1
      (B) Type 2
      (C) Type 3
      (D) Type 4
      (A) registerDriver() method
      (B) Class.forName()
      (C) Both A and B
      (D) getConnection()
      (A) Type 1 only
      (B) Type 2 only
      (C) Both Type 3 and Type 4
      (D) All of Type 1, Type 2, Type 3 and Type 4
      (A) In the MySQL database mysql
      (B) In the MySQL database metadata
      (C) In the MySQL database metasql
      (D) In the MySQL database mysql
      (A) CallableStatement clbstmnt = con.prepareCall("{call totalStock}");cs.executeQuery();
      (B) Statement stmt = connection.createStatement();stmt.execute("totalStock()");
      (C) StoreProcedureStatement spstmt = connection.createStoreProcedure("totalStock()");spstmt.executeQuery();
      (D) PrepareStatement pstmt = connection.prepareStatement("totalStock()");pstmt.execute();
      (A) Both Type 1 and Type 2
      (B) Both Type 3 and Type 4
      (C) Both Type 1 and Type 3
      (D) Type 4 only
      (A) TRANSACTION_READ_COMMITTED
      (B) TRANSACTION_READ_UNCOMMITTED
      (C) TRANSACTION_REPEATABLE_READ
      (D) TRANSACTION_SERIALIZABLE
      (A) One
      (B) Two
      (C) Three
      (D) Four
      (A) A Type 3 driver is a JDBC-Net pure Java driver
      (B) This translates JDBC calls into a database -dependent net protocol.
      (C) Vendors of database middleware products can implement this type of driver into their products to provide interoperability with the greatest number of database servers.
      (D) a,b
      (A) a
      (B) b
      (C) c
      (D) d
      (A) A workaround is to explicitly call the method DriverManager.registerDriver(new YourDriverClass).
      (B) The problem is due to race condition in the class loader.
      (C) The race condition prevents the static section of code in the driver class from executing and registering the driver with the DriverManager.
      (D) All the above.