View RSS Feed

Recent Blogs Posts

  1. Using the DriverManager Class

    by , 03-10-2012 at 08:47 AM
    The “DriverManager” class provides a method “DriverManager.getConnection” that is called when connection to your DBMS. The following code explains the use of getConnection method.
    Java Code:
    public Connection getConnection()
        throws SQLException {
        Connection conn = null;
        Properties connectionProps = new Properties();
        connectionProps.put("user", this.userName);
        connectionProps.put("password", this.password);
    ...
    Categories
    JDBC