JDBC Database Connectivity
Test your knowledge of Java Database Connectivity (JDBC) including drivers, connections, statements, prepared statements, result sets, and SQL execution methods.
Questions
In which of the following the primary function is to connect java applications to the correct JDBC driver?
- JDBC driver manager
- JDBC-ODBC bridge
- JDBC URL
- JDBC
- The java 2 ORB
Which of the following drivers is most appropriate on a corporate network where client installations are not a problem?
- JDBC-ODBC bridge ODBC driver
- JDBC-ODBC bridge
- JDBC-Net pure java driver
- Transaction
- JDBC URL
Which of the following driver coverts JDBC calls into calls on the client application programming interface for Oracle, Sybase etc?
- Alarm
- JDBC URL
- Native-API partly java driver
- JDBC-Net pure java driver
- JDBC-ODBC bridge
Which one of the following has a group of methods, which sets the value of IN parameters?
- Trader
- PreparedStatement
- Statement
- Stock
- Next()
Which of the following methods is used to access data from the ResultSet rows?
- getInputStream()
- getXXX()
- executeQuery()
- next()
- statement
To establish a connection with a database, you need to register the ODBC-JDBC driver by calling____________.
- stock
- forName()
- next()
- executeQuery()
- getInputStream()
Which of the following techniques mixes simple and advanced features together and it has complex options even for simple queries?
- JDBC URL
- JDBC
- ODBC
- JDBC-ODBC bridge
- Event
Which of the followings provides some confidence that JDBC drivers will run your program?
- StockHelper.java
- JDBC driver test suite
- JDBC-ODBC bridge
- JDBC
- JDBC URL
Which of the following drivers allows a direct call from the client machine to the database management server?
- Native-protocol pure java driver
- The java 2 ORB
- JDBC URL
- JDBC-ODBC bridge
- JDBC-Net pure java driver
Which of the following methods executes an SQL statement that may return multiple results?
- stock
- getInputStream()
- execute()
- executeQuery()
- next()