what is the use of datasource in core java?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is bmg file and how to create that files?what will it contailn?

1884


What is int argc char * argv?

563


What is considered an anti pattern?

523


What are assembly attributes?

542


Is set ordered in java?

570






What is a databasemetadata?

545


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

1406


Why is it called a string?

561


What is the purpose of the enableevents() method?

580


What is the difference between super class & sub class?

562


What is the difference between jfc & wfc?

592


What are the two types of java?

515


What is bytecode in java ?

604


How to Sort Strings which are given in List and display in ascending order without using java api.

3761


What is java’s garbage collected heap?

531