What happens if you call the method close() on a ResultSet object in - ProProfs Discuss
Advertisement

What happens if you call the method close() on a ResultSet object in java?

Asked by PeanutT, Last updated: Apr 09, 2024

+ Answer
Request
Question menu
Vote up Vote down

4 Answers

M. Porter

M. Porter

Here to relax my mind a bit

M. Porter
M. Porter, Senior Executive, Master of Art, San Jose

Answered Dec 14, 2018

The database and JDBC resources are released if you call the method close() on a ResultSet object in Java. If you try to call the method close on a ResultSet task, it will automatically bring you to the database and then the JDBC resources will be released.

This process allows you to be able to access databases which can then use this information depending on what information you need. To put it in simpler terms, the JDBC acts as a connection between the information database and the Java program.

As such, once you can get access to the JDBC, you can locate and edit the database to fix problems within the java program or to correct any mistakes in the application.

upvote downvote
Reply 

E. Stanley

E. Stanley

E. Stanley
E. Stanley, Technical writer, Indianapolis

Answered Jul 17, 2018

If you attempt to call the method close on a ResultSet project, it automatically links you to the database and the JDBC resources are released. This gives you access to the inherent data bases to exploit the information according to your needs. The JDBC is basically connecting the database with the java application.

Once you get your hands on the JDBC, you can easily find and manipulate the database. This is often used to correct the data or access and fix bugs in the application. The special commands help you to employ different functions in the app depending on the commands initiated.

upvote downvote
Reply 

John Adney

John Adney

John Adney
John Adney

Answered Aug 03, 2017

No idea about the same time as a result of a few days

upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Dec 31, 2016

The database and JDBC resources are released
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.