Find jobs | Jobseekers
Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Career Services Resume Services Interview questions Articles Books
Content
Java interview part 1
Java interview part 2
Java interview part 3
Java interview part 4
Java interview part 5
Core java
JDBC
JSP
EJB
JNI
Servlets
Struts
Java threading
Java web services
J2EE
J2ME
JMS
Internationalization
JavaScript
RMI
 
ASP.NET | ADO.NET | AJAX
C#.NET | VB.NET | PHP
NET Remoting | NET Interview
  
C | C++ | Java | Oops
Data Structure | OS
   
Database concepts | Oracle
SQL Server | Biztalk | Sharepoint
Notification services
Reporting Services
Service-oriented architecture
Data warehousing | MySQL
  
Project Management 
Linux | Testing | Networking
Software engineering 
  
UML | XML | HTML | SOAP 
CSS | VBScript  | Web Services
   
CV Cover letter | Interview 
HR | Soft skills | GD 
Working from Home 
Tutorial
ASP.NET | VB.NET | C#.NET     
Remoting.NET | Web service
Remoting overview | ADO.NET
UML | Sql server 
More links
JavaServer Faces 
OpenCms Application Overview 
EJB 3 Entities 
Oracle Web RowSet 
Books on Java
Java EE 5 Development with NetBeans 6 
OpenCms 7 Development 
EJB 3 Developer Guide 
JDBC 4.0 and Oracle JDeveloper for J2EE Development 

Interview Questions


Java Interview questions part 3
Part 1 | Part 2 | Part 3 | Part 4 | Part 5 <<Previous  Next>>

Question - Define JDBC. 

Answer
The JDBC API defines interfaces and classes for making database connections. Using JDBC, you can send SQL, PL/SQL statements to almost any relational database.

Question - Describe JDBC Architecture in brief.
Answer
Java application calls the JDBC library that loads a driver which talks to the database. 
Question - Define ResultSet. 
Answer
ResultSet provides access to the rows of table. A ResultSet maintains a cursor pointing to its current row of data. The next() method is used to step through the rows of the ResultSet. 
Question - What is ResultSetMetaData? 
Answer
ResultSetMetaData Interface holds information about the columns in a ResultSet.
Question - What are the types of JDBC drivers? 
Answer
There are four types of JDBC drivers. 

JDBC-ODBC bridge plus ODBC driver, also called Type 1. 
Native-API, partly Java driver, also called Type 2. 
JDBC-Net, pure Java driver, also called Type 3. 
Native-protocol, pure Java driver, also called Type 4  

Question - Define Isolation.  
Answer
Isolation ensures one transaction does not interfere with another. The isolation helps when there are concurrent transactions. In order to set the isolation level for a JDBC transaction, we can use
Connection.setTransaction(int level) method 
Question - What are the Transaction levels available?   
Answer
TRANSACTION_NONE
TRANSACTION_READ_UNCOMMITED
TRANSACTION_READ_COMMITTED
TRANSACTION_REPEATABLE_READ
TRANSACTION_SERIALIZABLE
Question - What is the purpose of setAutoCommit do?   
Answer
A connection is in auto-commit mode by default which means every SQL statement is treated as a transaction and will be automatically committed after it is executed. If you want all statements not to be committed until you call the method commit explicitly, you need to disable auto-commit mode. 
con.setAutoCommit(false); 
Question - What is JDBC driver? 
Answer
The JDBC Driver provided by the JDBC API, is a vendor-specific implementations of the abstract classes. The driver is used to connect to the database. 
  

Part 1 | Part 2 | Part 3 | Part 4 | Part 5



 

 
Today's Hot Jobs
C++  SQL Server
.NET  Java  Oracle
Finance  Marketing
Seekers  Employers
Copyright © 2008 CareerRide.com. All rights reserved.