Multiple choice

Which of the following methods is not defined in the DriverManager class in Java Database Programming?

  1. getConnection(String url, String user, String password)

  2. deregisterDriver(Driver driver)

  3. getLoginTimeout()

  4. registerDriver(Driver driver)

  5. getLog()

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

This is the correct option because there is no method named getLog() in DriverManager class. The correct method is getLogWriter(), which retrieves the log writer.