MongoDB is a no-SQL database that is document-oriented. MongoDB, which was first released in 2009, successfully replaced rows and columns in traditional relational data models with documents. We do not need to use the JDBC API to connect to MongoDB because its API is completely independent and does not require any other external library. Prerequisites: […]
September 5, 2022 | Java | No comments
Follow the steps below to connect a Java application to an Oracle database using Thin Driver. Download Oracle JDBC Driver Load Driver Class JDBC Connection Load the jar file Download Oracle JDBC Driver: Visit Oracle database website and download the Oracle JDBC Driver. Load Driver Class: The Oracle database Driver Class is oracle.jdbc.driver.OracleDriver and the Class.forName(“oracle.jdbc.driver.OracleDriver”) method […]
September 5, 2022 | Java | No comments
Follow the steps below to connect a Java application to a MySQL database using the JDBC Driver. Download JDBC driver for MySQL No need to load MySQL driver class explicitly Understand the getConnection() method of DriverManager class Java code example connects to MySQL database Download JDBC driver for MySQL: To begin, a JDBC driver for […]
September 4, 2022 | Java | No comments
JDBC (Java Database Connectivity) is the Java API for connecting to a database, issuing queries and commands, and handling database result sets. It is a component of JavaSE (Java Standard Edition). JDBC API connects to the database using JDBC drivers. JDBC is fundamentally a specification that provides a comprehensive set of interfaces for mobile access […]
September 1, 2022 | Java | No comments