Here you can find the source of getConnection(String url, String username, String password)
public static Connection getConnection(String url, String username, String password) throws SQLException
//package com.java2s; //License from project: Open Source License import java.sql.*; public class Main { public static Connection getConnection(String url, String username, String password) throws SQLException { return DriverManager.getConnection(url, username, password); }/*from w w w . j a va 2s . com*/ }