what happens if connection is not closed?

Answer Posted / siva mukesh

As per my knowledge "We must close the database connection.if not the database will not update even after executing query also.For example our program is to update EMP table from our database.Now check this program without closing the connection and closing the connection."

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is metadata in java programming?

493


How can you load the drivers?

556


What are the types of statements in jdbc?

532


Where can I find ojdbc14 jar file?

498


What is a statement in java?

516






What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.

477


What are the different types of locking in JDBC?

576


What does the jdbc resultset interface?

535


How does jdbc work?

505


Is odbc an api?

521


How can I determine the isolation levels supported by my DBMS?

523


How to connect multiple database in jdbc?

499


What are the benefits of PreparedStatement over Statement?

531


If I use the JDBC API, do I have to use ODBC underneath?

609


Why do we need jdbc driver?

482