Quiz on MySQL Java Syntax



1. What is the primary class used to connect to a MySQL database in Java?
2. Which method is used to create a Statement object in Java?
3. How do you execute an SQL query using a Statement object?
4. Which interface is used for executing parameterized queries in Java?
5. What method is used to set a string parameter in a PreparedStatement?

Advertisements