This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
In this, I read that DriverManager class handles establishing connection between a database and appropriate driver.
But what my intuition is, the connection is established between an application and database.
the connection is established between an application and database
Indeed. But by using the DriverClass, and othe jdbc classes, as the connection mechanism.
Your application asks the DriverClass to connect to the database.
The DriverClass establishes the connection to the database.
Your application uses that connection.