0% found this document useful (0 votes)
95 views

Assignment 1 JDBC

This document outlines an assignment for a Java database connection course. It includes two problems: 1) create a program to read data from a CSV file and store it in database tables, and 2) create a program to generate a CSV file from database tables. It also lists 15 short questions about database server details, JDBC statements, transactions, PreparedStatements, result sets, batch processing, isolation levels, data types, warnings and more. The assignment is due between February 12-13, 2018.

Uploaded by

Dhruv Dalwadi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views

Assignment 1 JDBC

This document outlines an assignment for a Java database connection course. It includes two problems: 1) create a program to read data from a CSV file and store it in database tables, and 2) create a program to generate a CSV file from database tables. It also lists 15 short questions about database server details, JDBC statements, transactions, PreparedStatements, result sets, batch processing, isolation levels, data types, warnings and more. The assignment is due between February 12-13, 2018.

Uploaded by

Dhruv Dalwadi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Department of Information Technology Advance Java Technology [2160707]

Assignment -1: Java Database Connection

Date: 30 Jan 2018 Submission Date: 12 – 13 Feb 2018

Problem:
1. Create java program which will read data from CSV (Comma Separated Values) and stored in
tables of your preferred database.
2. Create java program which will create csv file from tables of your preferred database.
Short Questions:
1. how to get the Database server details in java program?
2. What is the difference between execute, executeQuery, executeUpdate?
3. What is the use of getGeneratedKeys() method in Statement?
4. What are the benefits of PreparedStatement over Statement?
5. What are different types of ResultSet?
6. What is JDBC Batch Processing and what are it’s benefits?
7. What is JDBC Transaction Management and why do we need it?
8. What is JDBC DataSource and what are it’s benefits with example
9. What is Apache DBCP API
10. What is JDBC Connection isolation levels?
11. What is CLOB and BLOB datatypes in JDBC?
12. What is “dirty read” in JDBC? Which isolation level prevents dirty read?
13. What is difference between java.util.Date and java.sql.Date?
14. How to insert an image or raw data into database?
15. What is SQL Warning? How to retrieve SQL warnings in the JDBC program?

1|Page A.D.Patel Institute Of Technology

You might also like