Похожие чаты

Is there any specific order in which Connection object, ResultSet

object and PreparedStatement object need to be closed ?

4 ответов

7 просмотров

ResultSet PreparedStatement Connection In that order

Subham- Автор вопроса

Use try with resources

I'm surprised that PreparedStatement is a closeable. But yeah, if it's closeable, thne the proper order is as Roy posted. If not, just exclude PreparedStatement from the list

Похожие вопросы

Карта сайта