JDBC Interview Question
JDBC Interview Question
A list of frequently asked jdbc interview questions with answers are given below.
1) What is JDBC?
JDBC is a Java API that is used to connect and execute query to the database. JDBC API
uses jdbc drivers to connects to the database.
Creating connection
Creating statement
Executing queries
Closing connection
Connection
Statement
PreparedStatement
ResultSet
ResultSetMetaData
DatabaseMetaData
CallableStatement etc.
Classes:
DriverManager
Blob
Clob
Types
SQLException etc.
15) How can we store and retrieve images from the database?
By using PreparedStatement interface, we can store and retrieve images.