Analysis should be performed on the programming process to establish a JDBC connection and includes

getConnection(String url)
getConnection(String url, String user, String password)

(Summary)

jdbc:oracle:thin:@jdoe:1511:EMP URL Connection: DriverManager.getConnection(String url, Properties info);


(Complete)

import java.util.*;

String URL = "jdbc:oracle:thin:@jdoe:1511:EMP";
Properties info = new Properties( );
info.put( "user", "username" );
info.put( "password", "password" );

Connection conn = DriverManager.getConnection(URL, info);