★ wanayoo — archive 1999 http://java.sun.com/developer/onlineTraining/new2java/supplements/quizzes/June02.htmlNouvelle recherche | Portail wanayoo
Skip Masthead Links developers.sun.com   » search tips  |  Search:     
The Source for Java Developers
Sun Microsystems
 
 
Java Technology Fundamentals Mini Quizzes
June Mini Quiz
 

New-to-Java Programming Center



Java Platform Overview | Getting Started | Step-by-Step Programming
Learning Paths | References & Resources | Certification | Newsletters

The June issue of the Java Technology Fundamentals newsletter covered connecting to a database using JDBC technology. Test what you learned by answering the questions below.

  1. Which of the following ways will not load a JDBC driver?
     A. Configure the list of drivers in the jdbc.driver system property
     B. Call the driver's constructor
     C. Pass the class name to the forName method of Class
     D. Use JNDI to locate the Driver


  2. What does JDBC stand for?
     A. Java Database Connectivity
     B. JDBC is not an acronym


  3. In a non-JNDI environment, through which class does one acquire a connection to a specific data source?
     A. Driver
     B. DriverManager
     C. Connection
     D. DatabaseMetaData
     E. Context


  4. In a JNDI environment, through which class does one acquire a connection to a specific data source?
     A. Driver
     B. DriverManager
     C. Connection
     D. DatabaseMetaData
     E. DataSource


  5. Which way of loading the database driver can create two instances of the class?
     A. Specify the driver or set of drivers to use by setting the jdbc.drivers system property.
     B. Pass the class name as a String to the forName method of Class.
     c. Create an instance of the class.