Have you ever wondered how the following code worked? Class.forName(“some.database.Driver”); Connection conn = DriverManager.getConnection(“connection_url”, “username”, “password”); A half-backed answer would be Class.forName() loads the database driver class some.database.Driver, and DriverManager.getConnection() returns the appropriate Connection instance based on the ‘connection_url’ provided. […]
Categories
Browse through following categories for articles written by professionals.