Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what happens if connection is not closed?

Answers were Sorted based on User's Feedback



what happens if connection is not closed?..

Answer / pooja

if we don't close the connection , it wil lead to
connection memory leakage.unless until application
server/web server is shut down ,connection wil remain
activate even though the user logs out .

Is This Answer Correct ?    66 Yes 2 No

what happens if connection is not closed?..

Answer / srikanth

suppose if there are 10 database connections available with
the database sever and 10 clients request for the connection
if the database sever grants all of them with a connection
and after their usage if they do not close the connections
the database server would not serve for another request for
that reason we need to close the connection and it mandatory
....

Is This Answer Correct ?    24 Yes 8 No

what happens if connection is not closed?..

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

what happens if connection is not closed?..

Answer / deepak cheela

For suppose if two database connections are available for
two client requests then database server grants all of them
connection after usage of one client request is over that
client must close the connection becoz server create a
session with clent requests.if so we do without clossing the
connection the DBserver thinks client is still processing
then load wil be on DBserver and performance will decrease.

Is This Answer Correct ?    1 Yes 1 No

what happens if connection is not closed?..

Answer / deepak upadhyay

If we don't close the connection ,we will get memory leakage...and it will open even after log out..and also create distinguish between two user login,it might be interchange...

Is This Answer Correct ?    0 Yes 0 No

what happens if connection is not closed?..

Answer / prathao

nothing wil be happen if the connection wil not closed but
we can close it because it is not mandatory to close the
connection if we can't close connection our application wil
be worked

Is This Answer Correct ?    1 Yes 19 No

what happens if connection is not closed?..

Answer / varma

According to my understanding once we exit java application
then all opened database connections from this application
will be closed automatically

Is This Answer Correct ?    6 Yes 40 No

Post New Answer

More JDBC Interview Questions

what is the difference between SENSITIVE and INSENSITIVE?

1 Answers  


How can I manage special characters when I execute an insert query?

0 Answers  


How to use JDBC to connect Microsoft Access?

0 Answers  


What is the latest version of JDBC? What are the new features added in that?

0 Answers  


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

0 Answers  


What are the different types of interfaces in the api component?

0 Answers  


Name the types of jdbc drivers.

0 Answers  


Is jdbc a web technology?

0 Answers  


how can connection with oracle10g with java

3 Answers   IonIdea,


Which of the attributes in the monitoring tab for a jdbc connection pool in the administrative console tell us how many clients are currently waiting for a connection?

0 Answers  


What is a PreparedStatement?

3 Answers   Infosys,


Explain how to make updates to the updatable resultsets.

0 Answers  


Categories