adspace


What happens if resultset is not closed?

Answer Posted / Ranjan Kumar Jha

If a ResultSet is not closed, it will keep a database cursor open and consume system resources, potentially leading to resource exhaustion. It's essential to always close ResultSets after use to prevent such issues.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lazy class?

490


What is difference between @controller and @restcontroller in spring?

556


How can you inject java collection in spring?

518