Professional Documents
Culture Documents
the course __Modern Programming Languages___,I will not be involved in any kind of
kind of such activity of cheating/copying/plagiarizing, then Institute reserves the right to take
Student Signature
Mid Exam / Spring 2021 (Paper Duration 24 hours)
(Online Assignment Based Question Paper)
To be filled by Student
(THEORETICAL EXAMINATION)
1. The most fundamental difference between JDBC and ODBC is that JDBC is a language and it
depends on the platform. ODBC, on the other hand, has an independent language and platform.
2. Java Database Connectivity is an JDBC adjective, and on the other hand, Open Database
Connectivity is an ODBC adjective.
3. The ODBC code is complex and difficult to read. However, JDBC code is simple and easy to use.
4. Both JDBC and ODBC are used from the client side application to access different types of
information on the server side.
Q.No.2.What is the basic concept of JDBC? Explain with different programming examples.
(Marks 06)
Answer:
JDBC:
Java database connectivity is a java API to connect and perform operation ( insert, delete,
update, select, etc ) with the database. It provides classes and interface to connect or communicate
java application with database. It is used to communicate java application to database. It is both
platform and database independent. JDBC is implemented in java without points.
JDBC Architecture :
Application
JDBC API
JDBC Manger
JDBC Drivers
Program 1 Program 2
#include <iostream>
#include <iostream> using namespace std;
using namespace std;
int main()
int main() {
int rows;
{
while(k != 2*i-1)
++k
}
OUTPUT:
return 0;
}
OUTPUT: