InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is Rowset? |
Answer»
|
|
| 2. |
What are the differences between ODBC and JDBC? |
||||||||||||
Answer»
|
|||||||||||||
| 3. |
What do you mean by DatabaseMetaData and why we are using it? |
| Answer» | |
| 4. |
What is stored procedure? What are the parameter types in stored procedure? |
Answer»
Stored procedures are called using CALLABLESTATEMENT class AVAILABLE in JDBC API. Below given code demonstrates this: CallableStatement cs = con.prepareCall("{call GET_EMP_DETAILS(?,?)}");ResultSet rs = cs.executeQuery();
|
|
| 5. |
Which data types are used for storing the image and file in the database table? |
| Answer» | |
| 6. |
Which JDBC driver is fastest and used more commonly? |
|
Answer» JDBC Net pure Java DRIVER(Type 4 driver) is the fastest driver for localhost and remote connections because it directly interacts with the DATABASE by converting the JDBC CALLS into vendor-specific protocol calls. |
|
| 7. |
What is DriverManager in JDBC? |
Answer»
|
|
| 8. |
What is JDBC driver? |
|
Answer» JDBC driver is a software component having various classes and interfaces, that enables the Java application to interact with a database. To connect with INDIVIDUAL databases, JDBC requires PARTICULAR drivers for each specific database. These drivers are provided by the database vendor in addition to the database. For example:
JDBC driver provides the connection to the database. Also, it implements the PROTOCOL for sending the query and result between client and database. |
|
| 9. |
What is ResultSet? |
Answer»
|
|
| 10. |
What is JDBC in Java? |
|
Answer» JDBC(Java Database Connectivity) is a Java API, which is helpful in INTERACTION with the database to retrieve, manipulate and process the data using SQL. It will make use of JDBC drivers for connecting with the database. By using JDBC, we can access tabular data stored in VARIOUS types of RELATIONAL databases such as Oracle, MYSQL, MS Access, etc. |
|