Hi Hemant,
Say you stored procedure is sp_emp for famous Oracle emp table:
Now when you run the procedure from SQL prompt, it will return records for all the employees which is
essentially a resultset. That's how the stored procedure can return resultset.
Now in yor
java code:
The above code will give you all the employee records in resultset rst. So you can not use the resultset same way as you use for adhoc queries.
hth,
Harshil