Select chapter



basics (7.papers)
constructors (1.papers)
packages (1.papers)
inheritance (7.papers)
misc (3.papers)
exceptions (5.papers)
threads (4.papers)
overloading (1.papers)
jsp (3.papers)
servlets (9.papers)
jdbc (2.papers)
util (1.papers)
xml (2.papers)
IO stream (3.papers)
Hide

Sponsored Links


  

java jdbc interview questions and answers

Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
9
Which of the following creates a ResultSet which is  both read-write and has a cursor that moves forward only ?
  1. ResultSet.TYPE_SCROLL_INSENSITIVE and  ResultSet.CONCUR_UPDATABLE
  2. ResultSet.TYPE_SCROLL_SENSITIVE and  ResultSet.TYPE_FORWARD_ONLY 
  3. ResultSet.TYPE_FORWARD_ONLY  and  ResultSet.CONCUR_UPDATABLE
  4. ResultSet.TYPE_FORWARD_ONLY  and  ResultSet.CONCUR_READ_ONLY
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
14
Which method must be called before inserting a row using ResultSet?
  1. insertRow()
  2. moveToInsertRow
  3. moveToCurrentRow()
  4. newRow()
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
17
Java JDBC 4.0 service provider mechanism feature allows
  1.  JDBC drivers  to announce themselves by providing a META-INF/services/java.sql.Driver file that are automatically discovered, loaded and registered.
  2.  automatic discovery, loading and registering of all the  JDBC drivers installed in the system 
  3.  JDBC drivers  to announce themselves by implementing DriverManager interface that are automatically discovered, loaded and registered.
  4.  automatic discovery, loading and registering of all the  JDBC drivers installed in the JAVA_HOME path
Show Answer
Share Facebook gmail Twitter
18
How can you execute a stored procedure in the database?
  1. Call method execute() on a CallableStatement object
  2. Call method executeProcedure() on a Statement object
  3. Call method execute() on a StoredProcedure object
  4. Call method run() on a ProcedureCommand object
Show Answer
Share Facebook gmail Twitter
19
Class.forName() method could throw which exception?
  1. ClassNotFoundException
  2. SQLException
  3. ClassCastException
  4. ClassLoadException
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Read more papers :