what is the use of datasource in core java?

Answers were Sorted based on User's Feedback



what is the use of datasource in core java?..

Answer / lark

A DataSource encapsulates state information for a database
such as driver class name, url, username and password. This
info is then handed out via the getConnection() method to
its callers.

Is This Answer Correct ?    6 Yes 1 No

what is the use of datasource in core java?..

Answer / mohideen

DataSource is used to acquiting the database connection of
open and close in the connection pools.
DataSource.getconnection() &
DataSource.close().

Is This Answer Correct ?    5 Yes 2 No

what is the use of datasource in core java?..

Answer / developer

jada bakchodi theek ni h yaha per..theek s pado fir jawab
diya kero..All d best wse correct anser:-
It help us in maintaing connection pool and connection
management.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

Where import statement is used in a java program?

0 Answers  


How concurrent hashmap works?

0 Answers  


What is charat ()?

0 Answers  


How to call static method?

4 Answers   Epoch,


What sorting algorithm does javascript use?

0 Answers  


What is the difference between member variables initialization and assignment in a constructor?

0 Answers   Hexaware, Virtusa,


Write java code to print "Hello how are you" Thread1 should have "Hello" Thread2 should have "how are you" both the threads should start at the same time

4 Answers   Huawei,


Describe what happens when an object is created in java ?

0 Answers  


What happens when heap memory is full?

0 Answers  


What are interfaces?

3 Answers  


Describe how to implement singleton design pattern in struts.

0 Answers  


Can private members of a base class are inheritable justify?

0 Answers  


Categories