import java.sql.*;
import java.lang.*;
import java.util.*;
public class JDBCTest02{
public static void main(String[] args){
Statement stmt = null;
Connection conn = null;
ResourceBundle bundle = ResourceBundle.getBundle("JDBC");
String driver = bundle.getString("driver");;
String url = bundle.getString("url");
String user = bundle.getString("user");
String password = bundle.getString("password");
try{
Class.forName(driver);
conn = DriverManager.getConnection(url,user,password);
System.out.println(conn);
}catch(SQLException e){
e.printStackTrace();
}catch(ClassNotFoundException e){
e.printStackTrace();
}
}
}