Sail E0 Webinar

MCQs

Total Questions : 25 | Page 3 of 3 pages
Question 21. Which are the new features adding in to the JDBC 4.0?
  1.    Auto-loading of JDBC driver class
  2.    Connection management enhancements
  3.    Support for RowId SQL type
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above




Question 22. When the message "No Suitable Driver" occurs?
  1.    When the driver is not registered by Class.forname() method
  2.    When the user name, password and the database does not match
  3.    When the JDBC database URL passed is not constructed properly
  4.    When the type 4 driver is used
 Discuss Question
Answer: Option C. -> When the JDBC database URL passed is not constructed properly




Question 23. Which of the following methods are needed for loading a database driver in JDBC?
  1.    registerDriver() method
  2.    Class.forName()
  3.    Both A and B
  4.    getConnection()
 Discuss Question
Answer: Option C. -> Both A and B




Question 24. What is, in terms of JDBC, a DataSource?
  1.    A DataSource is the basic service for managing a set of JDBC drivers
  2.    A DataSource is the Java representation of a physical data source
  3.    A DataSource is a registry point for JNDI-services
  4.    A DataSource is a factory of connections to a physical data source
 Discuss Question
Answer: Option D. -> A DataSource is a factory of connections to a physical data source




Question 25. What is the disadvantage of Type-4 Native-Protocol Driver?
  1.    At client side, a separate driver is needed for each database
  2.    Type-4 driver is entirely written in Java
  3.    The driver converts JDBC calls into vendor-specific database protocol
  4.    It does not support to read MySQL data
 Discuss Question
Answer: Option A. -> At client side, a separate driver is needed for each database




Latest Videos

Latest Test Papers