import java.sql.*; public class EmpDAO2 { // 1. 공통 필드 선언 private Connection conn; private Statement stmt; private ResultSet rs; // 2. 공통 메서드 선언 public void setConn() { // 1) 드라이버 연결 try { Class.forName("oracle.jdbc.driver.OracleDriver"); } catch(Exception ex) { ex.printStackTrace(); } // 2) 특정 서버 연결 String info= "jdbc:oracle:thin:@localhost:1521:xe"; try { conn= DriverManager.getConnection(info,..