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 15a. 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)