Which of the following is the JDBC 2.0 Optional Package for database connection?

Which of the following is the JDBC 2.0 Optional Package for database connection?

Which of the following is the JDBC 2.0 Optional Package for database connection?

A.
java.sql

B.
javax.sql

C.
java.opt

D.
sqlx.java

E.
javasqlx.class

F.
sql.class

G.
jdbc.class

H.
None of the above

Explanation:
Quoted directly from Sun’s Java document site at
http//developer.java.sun.com/ Before moving on, the new DataSource class
introduced in the JDBC 2.0 Optional Package should be mentioned. The
specification recommends DataSource as the means for obtaining a Connection and
actually talks about deprecating the current DriverManager / Connection method.
While the JDBC programmer should be aware of this movement, and may even use
it–most commonly in a J2EE environment,–it would be very surprising to see the
DriverManager approach abandoned anytime soon. More information on the
optional package is available at this site



Leave a Reply 0

Your email address will not be published. Required fields are marked *