Archive for jdbc questions
You are browsing the archives of jdbc questions.
You are browsing the archives of jdbc questions.
1) What are the steps involved in establishing a connection?
ANSWER : This involves two steps: (1) loading the driver and (2) making the connection.
2) How can you load the drivers?
ANSWER : Loading the driver or drivers you want to use is very simple and involves just one line of code. If, for example, you [...]
Q.What is JDBC?
Ans: 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.
Q.What is the difference between JDBC and ODBC?
Ans: a) OBDC is for Microsoft and JDBC is for Java applications.
b) ODBC can’t be [...]
Q. What is JDBC ? what are its advantages ?
A. It is an API .The latest version of jdbc api is (3.0).
The JDBC 3.0 API is divided into two packages:
(1) java.sql and (2) javax.sql.
Both packages are included in the J2SE and J2EE platforms.
Advantage:
The JDBC API can be [...]