title: jdbc connection established but didnt print the result in eclipse console
body: <p>I am new to this forum....</p>
  
  <p>Iam tring to connect java project created in eclipse with oracle database xe,</p>
  
  <p>I followed the procedures as descrided in the following link
  <a href="https://www.youtube.com/watch?v=fMp63HsIRbc" rel="nofollow">https://www.youtube.com/watch?v=fMp63HsIRbc</a></p>
  
  <p>but it didnt print the result in the eclipse console but it also didnt throw the exception as well </p>
  
  <p>what should be the reason </p>
  
  <p>this is my code </p>
  
  <pre><code>package dbmsoracle;
  
  import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.ResultSet;
  import java.sql.Statement;
  public class Jdb {
  
  public static void main(String[] args) {
      System.out.println("jen");
      try
      {
          Class.forName("oracle.jdbc.driver.OracleDriver");
          Connection con =        DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","murali123");
          Statement st = con.createStatement();
          String sql="select * from muhil";
          ResultSet rs =st.executeQuery(sql);
          while (rs.next())
          {
              System.out.println("executing ...");
              System.out.println(rs.getInt(1)+" "+rs.getInt(2));
              System.out.println("executed");
              con.close();
  
          }
      }
      catch (Exception e)
      {
          System.out.println("connection failed");
      System.out.println(e);  
      }
  
      }
  </code></pre>
  
  <p>i have downloaded my jdbc driver </p>
  
  <p>Oracle Database 11g Release 2 (11.2.0.4) JDBC Drivers
  ojdbc6.jar
  Certified with JDK 8, JDK 7 and JDK 6: ......</p>
  
  <p>and iam using jdk 8</p>