What exactly happens when Class.forName(sun.jdbc.odbc.JdbcOdbcDriver) gets called

Showing Answers 1 - 2 of 2 Answers

Normally, when you say Class.forName("class.name"); it creates an instance of
itself and registers it with DriverManager.

It loads class in memory. and while loading, it also calls static block of the
class, which can instantiate the object and register it with DriverManager.

Remember, It loads the class not instantiate.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions