No, bisogna utilizzare le CallableStatement, che sono state fatte apposta per ste cose...
codice:
CallableStatement calStat = con.prepareCall("begin GetClient(?,?,?); end;");
calStat.registerOutParameter(1,Types.INTEGER);
calStat.registerOutParameter(2,Types.INTEGER);
calStat.registerOutParameter(3,Types.VARCHAR);
calStat.setInt(1,m_iId);
calStat.execute();
m_iId = calStat.getInt(1);
m_iTipo = calStat.getInt(2);
m_sFiller = calStat.getString(3);
calStat.close();
ad esempio qua sopra ho chiamato una SP che accetta un parametro in ingresso e torna tre in uscita