Method to establish connection with specified url in a Driver Manager class - JDBC

Q.  Which method is used to establish the connection with the specified url in a Driver Manager class?
- Published on 22 Jul 15

a. public static void registerDriver(Driver driver)
b. public static void deregisterDriver(Driver driver)
c. public static Connection getConnection(String url)
d. public static Connection getConnection(String url,String userName,String password)

ANSWER: public static Connection getConnection(String url)

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)