When we close a connection (connectionobject.close()), will the statements and resultsets automatically get closed..? Or, do we have to close statements and resultsets explicitly..?
Yes, they will all close too, since they depend on the connection. It's advisable to close your statement & resultset separately though. ------------------ Bosun SCJP for the Java� 2 Platform
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley
The resultse is a pointer to a row(s) that match the criteria. You will need to put your rows in some kind of collection such an ArrayList, if you want to access it when the connection is closed. There could be another way that I am not aware of. ------------------ Bosun SCJP for the Java� 2 Platform
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley