A. the method close() does not exist for a ResultSet. Only Connections can be closed.
B. the database and JDBC resources are released
C. you will get a SQLException, because only Statement objects can close ResultSets
D. the ResultSet, together with the Statement which created it and the Connection from which the Statement was retrieved, will be closed and release all database and JDBC resources
B. the database and JDBC resources are released
C. you will get a SQLException, because only Statement objects can close ResultSets
D. the ResultSet, together with the Statement which created it and the Connection from which the Statement was retrieved, will be closed and release all database and JDBC resources
No comments:
Post a Comment