Sunday, 24 March 2013

What is serialization and deserialization?


What is serialization and deserialization?  
Serialization is the process of writing the state of an object to a byte stream. Deserialization is the process of restoring these objects.

Blog Author: Vijay Kumar


What is JDBC?


What is JDBC? 
 JDBC is a set of Java API for executing SQL statements. This API consists of a set of classes and interfaces to enable programs to write pure Java Database applications.

Blog Author: Vijay Kumar


What are drivers available?


What are drivers available?  
a) JDBC-ODBC Bridge driver 
b) Native API Partly-Java driver 
c) JDBC-Net Pure Java driver 
d) Native-Protocol Pure Java driver

Blog Author: Vijay Kumar


What is the difference between JDBC and ODBC?


What is the difference between JDBC and ODBC?  
a) OBDC is for Microsoft and JDBC is for Java applications. b) ODBC can’t be directly used with Java because it uses a C interface. c) ODBC makes use of pointers which have been removed totally from Java. d) ODBC mixes simple and advanced features together and has complex options for simple queries. But JDBC is designed to keep things simple while allowing advanced capabilities when required. e) ODBC requires manual installation of the ODBC driver manager and driver on all client machines. JDBC drivers are written in Java and JDBC code is automatically installable, secure, and portable on all platforms. f) JDBC API is a natural Java interface and is built on ODBC. JDBC retains some of the basic features of ODBC.

Blog Author: Vijay Kumar


What are the types of JDBC Driver Models and explain them?


What are the types of JDBC Driver Models and explain them?  
There are two types of JDBC Driver Models and they are: a) Two tier model and b) Three tier model Two tier model: In this model, Java applications interact directly with the database. A JDBC driver is required to communicate with the particular database management system that is being accessed. SQL statements are sent to the database and the results are given to user. This model is referred to as client/server configuration where user is the client and the machine that has the database is called as the server. Three tier model: A middle tier is introduced in this model. The functions of this model are: a) Collection of SQL statements from the client and handing it over to the database, b) Receiving results from database to the client and c) Maintaining control over accessing and updating of the above.

Blog Author: Vijay Kumar