COMPUTER SCIENCE AND ENGINEERING
SQL
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
DataSource is the basic service for managing a set of JDBC drivers
|
|
A DataSource is the Java representation of a physical data source
|
|
A DataSource is a registry point for JNDI-services
|
|
A DataSource is a factory of connections to a physical data source
|
Detailed explanation-1: -WebLogic JDBC data sources provide database access and database connection management. Each data source contains a pool of database connections that are created when the data source is created and at server startup.
Detailed explanation-2: -JDBC is an API (Application Programming Interface) that helps a programmer to write a Java program to connect to a database, retrieve the data from the database, and perform various operations on the data in a Java program.
Detailed explanation-3: -JDBC data sources include options that determine the identity of the data source, way the data is handled on a database connection, and the way transactions are handled when a connection from the data source is used in a global transaction.
Detailed explanation-4: -A DataSource object is the representation of a data source in the Java programming language. In basic terms, a data source is a facility for storing data. It can be as sophisticated as a complex database for a large corporation or as simple as a file with rows and columns.
Detailed explanation-5: -Q 1-Which of the following is correct about Statement class of JDBC? A-Statement encapsulates an SQL statement which is passed to the database to be parsed and compiled.