forName() method of "Class" class is used to register the driver class - Core Java

Q.  Which method of 'Class' class is used to register the driver class and the method is used to dynamically load the driver class?
- Published on 15 Jul 15

a. forName()
b. getConnection()
c. createStatement()
d. executeQuery()

ANSWER: forName()

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