JDBC
Java DataBase Connector
The Java DataBase Connector (JDBC) is the way to connect to a database from Java.
We are going to use it to connect to H2.
Connection con = DriverManager("...", "username", "password")
The Try Catch Statement §1
Prepared Statements §2
Transactions §3
Do or do not, there is no try
Read more here.