CallableStatement class
Calling a stored procedure in the databaseCallableStatment cstmt = conn.prepareCall (“{call getTestData( ? , ? ) }”);
The OUT parameters must be registered before the statement is executedcstmt.registerOutParameter(1, Types.NUM);cstmt.registerOutParameter(2, Types.VARCHAR2);cstmt.executeQuery( );int I = cstmt.getInt(1);String s = cstmt.getString(2);