currently i have jdbc code with the following basic stucture:
get Connection
(do the next 4 lines several times, never closing statement)
get statement
get result set
process result set
close result set
close connection
It occurred to me after writing this code that i need to close the statement.
1 what are the effects of not closing the statement.
2 will the following work, this si will closing the statement prevent me from processing the result set as normal?
get Connection
(do the next 5 lines several times)
get statement
get result set
close statement
process result set
close result set
close connection