PreparedStatement interface

How about we see the straightforward illustration of ResultSet interface to recover the information of third column.

import java.sql.*; 
class FetchRecord{ 

public static void main(String args[])throws Exception{ 

class.forName("oracle.jdbc.driver.OracleDriver"); 
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","oracle"); 
Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); 
ResultSet rs=stmt.executeQuery("select * from emp765"); 


//getting the record of third line 
rs.absolute(3); 

System.out.println(rs.getString(1)+" "+rs.getString(2)+" "+rs.getString(3)); 



con.close(); 

}