Assignment 1 JDBC
Assignment 1 JDBC
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?