Explain Connection Pooling?

Answers were Sorted based on User's Feedback



Explain Connection Pooling?..

Answer / ravikiran(aptech mumbai)

connectin pooling is maintaing a pool of connection which
will allow us to resuse the connection without creating a
new one

Is This Answer Correct ?    7 Yes 0 No

Explain Connection Pooling?..

Answer / sudhakartalluri

Connection Pooling it was nothing but a pool of connection
objects to communicate to database.Generally we will create
our own objects for interacting with databases but,in some
times there is a necessary to create more connection objects
even if they not needed that much.So in this times we will
go for connection pooling mechanism.

In this we will create connection pool in application server
and we will store some connection objects to connection pool
When ever the client or user needs to access database then
with help of Intialcontext lookup() method we can reffer to
connection object.

Is This Answer Correct ?    5 Yes 1 No

Explain Connection Pooling?..

Answer / p.nandakishore

the most time consuming process when we work with a
database is to create a connection object. when application
goes out of scope the object becomes a candidate for
grabage collector. every time we create and every it will
be destroyed. this as effect on a distributed application,
where n no clients are waiting for the response. Connection
pooling is a concept of object reusability.This is a
service provided by application servers.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is serialVersionUID and what is its need?

1 Answers   KPIT,


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

0 Answers  


What is the purpose of the enableevents() method?

0 Answers  


I declared main() method as private. But it still running and displaying the output. Please Answer it . Code Snippet as Below: import java.io.*; class over { private static void main(String[] args) { int high = Integer.MAX_VALUE; int overflow = high + 1; int low = Integer.MIN_VALUE; int underflow = low - 1; System.out.println(high + "\n" +overflow +"\n"+ low +"\n"+underflow); //System.out.println(overflow); //System.out.println(low); //System.out.println(underflow); } }

4 Answers   Cap Gemini,


What is the purpose of skeleton and stub?

0 Answers  


Explain the difference between string, stringbuffer and stringbuilder in java?

0 Answers  


Is hashset sorted in java?

0 Answers  


What is autoboxing and unboxing?

0 Answers  


Explain different data types in Java.

5 Answers  


Can we extend singleton class?

0 Answers  


program to validate the IP address? Validity range should be 0 to 255

1 Answers   Huawei,


Explain the difference between abstract class and interface in java?

0 Answers  


Categories