JDBC access database
JDBC is a Java Database Connectivity. The JDBC Connectivity provides API classes and interfaces for connecting the front end in Java application with database connections.
Understand with Example
In this Tutorial we want to describe you a code that helps in understanding JDBC access database. The code illustrates the list of following steps-
Finally the println print the Id and name from the result set obtained from database. lastly all the result set, connection and statement is closed.