What happens if resultset is not closed?



What happens if resultset is not closed?..

Answer / 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

More Spring Framework Interview Questions

What are the different types of annotations?

1 Answers  


What does mapping findforward () method return?

1 Answers  


What are the benefits of ioc (dependency injection)?

1 Answers  


What are spring boot metrics? : Spring Boot

1 Answers  


When should you use a spring boot? : Spring Boot

1 Answers  


What are dom elements?

1 Answers  


What is entitymanagerfactory and entitymanager?

1 Answers  


How to handle exceptions in spring mvc framework?

2 Answers  


How do beans become 'singleton' or prototype?

1 Answers  


What is difference between @inject and @autowired?

1 Answers  


What do you understand by @required annotation?

1 Answers  


What happens if resultset is not closed?

1 Answers  


Categories