In Java, a REF CURSOR is known as a ResultSet object and can be accessed as shown below:

import oracle.jdbc.*;
...
CallableStatement cstmt;
ResultSet cursor;

// Use a PL/SQL block to open the cursor
cstmt = conn.prepareCall
         ("begin open ?
126 more words