Can we use SQL in java?

we can use SQL (Structured Query Language) in Java. There are several Java libraries available for interacting with relational databases using SQL, such as JDBC (Java Database Connectivity) and JPA (Java Persistence API). Can we use SQL in java?