Question: Assume that you have a CoffeeDB database in your Java DB System. Coffee is one table. Write a Java program using JDBC to connect CoffeeDB
Assume that you have a CoffeeDB database in your Java DB System. Coffee is one table.
Write a Java program using JDBC to connect CoffeeDB database and retrieve all the Product Number (ProdNum) in Coffee table. Your Java program needs to Handle Exception of database connection. Also, you need a While Loop to process the result set and display all Product Numbers of the Coffeetable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
