it is necessary to execute this statement (Class.forName(...)) at least once before the first call to DriverManager prior to JDBC 4.0 and Java 1.6. And it could be executed MORE then once
However, since JDBC 4.0 (which is included in Java 6 and later), JDBC drivers are automatically discovered and registered by scanning for service providers on the classpath. This means that you no longer need to manually load the driver class with Class.forName() as long as the driver's JAR file is on the classpath.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ASPushkin
3 months, 1 week agod7bb0b2
1 year ago