by using jdbc we will connect to database in java.
first u have to load driver by using Class.forName()
or DriverManager's method. then U have to get
connection by using DriverManager.getConnection().
using connection object u have to create Statement and
then using statement u can execute and query.