title: fetch row id from oracle using Java
body: <p>I need to fetch rowid from Oracle database using Java. I have used the below code.</p>
  
  <pre><code>Statement st = con.createStatement();
  ResultSet rs=st.executeQuery("select * from ABC");
  while(rs.next()) {
              RowId str=rs.getRowId(1);        
              System.out.println(str);
          }
  </code></pre>
  
  <p>The result I am getting is </p>
  
  <pre><code>oracle.sql.ROWID@2ce6c6ec
  oracle.sql.ROWID@1bae316d
  </code></pre>
  
  <p>but I need hexadecimal values like </p>
  
  <pre><code>AAAdItACwAABXcIAAA
  </code></pre>
  
  <p>Can anyone guide me on this?</p>
  
  <p>thanks</p>