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

How does compareto work in java?

566


What is an interface in java?

555


Is set sorted in java?

511


Explain about fail fast iterators in java?

555


What are the characteristics of Final,Finally and Finalize keywords.

693






What is java string pool?

537


How is it possible for two string objects with identical values not to be equal under the == operator?

521


How we can generate random numbers in java?

599


What is a Transient Object?

627


What is java and why do we need it? Explain

579


What is the requirement of thread in java?

610


Why charat is used in java?

534


What is the difference between access specifiers and access modifiers in java?

566


What’s meant by anonymous class?

594


What is difference between module and function?

533