try {
String userName = "milley";
String password = "123456";
String url = "jdbc:oracle:thin:@localhost:1521/xe";
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection(url, userName, password);
} catch (ClassNotFoundException x) {
System.out.println("Driver Exceptions");
} catch (SQLException y) {
System.out.println("SQL Exceptions");
}
String userName = "milley";
String password = "123456";
String url = "jdbc:oracle:thin:@localhost:1521/xe";
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection(url, userName, password);
} catch (ClassNotFoundException x) {
System.out.println("Driver Exceptions");
} catch (SQLException y) {
System.out.println("SQL Exceptions");
}