How we connect java to database?
Use JDBC but use a type four driver. Its easier that. way. JDBC is the standard way to connect to a database in all types of Java applications but they are other ways but I advice you to stick with JDBC. If you still need help Google JDBC tutorials.
We can use JDBC to connect with database.