Question: how jdbc connect to database?
Answer: Install or locate the database you want to access. Include the JDBC library. Ensure the JDBC driver you need is on your classpath. Use the JDBC library to obtain a connection to the database. Use the connection to issue SQL commands.