Which method should be used to release the resources held by a Statement object immediately?

  • close()
  • execute()
  • finalize()
  • release()
In JDBC, the close() method should be used to release the resources held by a Statement object immediately. This method should be called when you're done using a Statement to free up resources, like database connections and memory. The other options do not serve this purpose.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *