Yes. Java SE has JDBC which stands for Java Database Connectivity. It has everything you need to read from and write to a database.