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 the role of jdbc drivermanager class?

557


What is connection pooling and why it is used?

516


What is jdbc and its types?

491


What are the classes and methods used for sending sql statements to database?

534


What are the different types of statements in jdbc?

479






What is SQL Warning? How to retrieve SQL warnings in the JDBC program?

537


What is jdbc in java?

482


What is the role of the jdbc drivermanager class?

476


What is execute in java?

511


What are the advantages of using preparedstatement in java?

540


How can we execute stored procedures?

560


What is jdbc connection string?

500


What is jdbc stand for?

483


How can you know about drivers and database information ?

540


Which jdbc drivers will run your program?

501