Java is object-oriented, distributed, secure, multi-threaded, and portable programming language. Java is a general purpose programming language intended to let the Java developers write once, run anywhere (WORA). WORA means that the compiled Java code(Java bytecode) can run on many platforms that support Java without the need to recompile the Java source code. This allows Java to be cross-platform and platform-independent.
First Java Application
Java Access Modifiers
Class and Object
Setters and Getters
Java Testing Tools
JDBC stands for Java Database Connectivity. JDBC API defines classes and interfaces that allows Java applications to interact with databases. In the following tutorials, we will learn to execute SQL statements from Java programs using JDBC API.
The basic steps to execute SQL statement with JDBC API are:
- Configure Java development environment. ( JDK Install, IDE setup etc)
- Create a Java project and class
- Download and Install JDBC Driver. Setup classpath or build path for the driver.
- Load suitable JDBC Driver
- Establish a database connection
- Create an SQL statement to execute
- Execute the SQL statement
- Process the query ResultSet
- Close the database connection
Java Database Connectivity API
More information on Java: