Once we have statement we can run the query and get the result to ResultSet format import java.sql.ResultSet; We use the method executeQuery() to execute our queries ResultSet result = statement.executeQuery("Select * from employees");