Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC , Transaction related question

 
prat de
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
please share ur answers/opinions regarding foll questions:
Q. Which of the following will not get the data from the first column of ResultSet rs, returned from executing the following SQL statement: “SELECT name, rank, serialNo FROM employee”

a. rs.getString(0);
b. rs.getString("name");
c. rs.getString(1);
Q. Which of the following statements about Transactions are true ?
a. A database does not support Transaction. In such a scenario, it is still possible to control transactions using JDBC API.
b. It is possible to set Transaction Isolation levels on the Statement object if we want the Statement to execute within a Transaction.
c. Assigning the CONCUR_UPDATEABLE property to ResultSet offers the highest level of concurrency.
d. It is possible to specify the database table index which should be used in a JDBC statement through hints.
- prat.
 
Joe Ess
Bartender
Pie
Posts: 9264
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
please share ur answers/opinions regarding foll questions:
I am:
a. doing my homework
b. doing my take-home exam
c. fond of multiple choice questions.
The answers to all your questions are in the JDBC Getting Started Guide
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic