以下操作数据库结束后关闭资源顺序合理的是()
A.ResultSet>Statement(或PreparedStatement)->Connection
B.Connection>Statement(或PreparedStatement)->ResultSet
C.Statement(或PreparedStatement)>ResultSet->Connection
D.以上都错误
正确答案是A