To connect to the database getConnection() method is used.
Syntax:
DriverManager.getConnection(String url, String user, String password);
Java
- JAVA and its Support Systems
- JAVA environment
- JAVA program structure
- Tokens
- Java statements
- Java virtual machine
- C++ Versus JAVA
- Constants and Variables in Java
- Data types JAVA
- Constructor in JAVA
- Array in Java
- Applet
- Applets Vs Applications
- Writing applets
- Applets life cycle
- Applet digital clock
- Creating an Executable Applet
- Graphics in Applet
- Applet image display
- Applet mouse event handling
- JDBC
- Establish Database Connection
- Execute an SQL Statement
- Defining a class
- Process the result
- CLOSE THE DATABASE CONNECTION
- File handling
Java Programs
- Java Scanner progam
- Java program to display message
- Java program use of Scanner class, nextInt()
- Java program use of If Else
- Java Nested Method
- Java program use of Switch case, break statement
- Java Program to use Nested Switch case
- Java program to enter marks
- Java program to enter marks, calculate sum, percentage, division etc.
- Java program While loop, input.nextInt()
- Java program arithmetic operators
- Java program main function with object
- Java program method overloaing
- Java program to show use of If, For, Scanner
- Java program type casting
- Java program use of continue
- Java program use of String
- Java program File handling create operation
- Javaprogram Graphic Applets
- Java program Applet image display
- Java program Applet digital clock
- Java program Applet mouse event handling
Select Subject
- Cloud Computing
- Computer Networks
- Theory of Computation
- Blockchain
- Computer Organization & Architecture
- Principles of Programming Languages
- Advanced Computer Architecture
- C
- Compiler Design
- Data Structure
- DBMS
- Discrete Structure
- Distributed System
- Information Storage & Management
- Java
- Linux
- Management Information System
- Network & Web Security
- Operating System
- PHP
- Python Programming
- R Programming
- Software Engineering & Project Management
Q & A
Recent Posts
- By using Newton Raphson Method, x^4-x-10=0 which is nearest to 2, find real root correct to three decimal places? (R.G.P.V. 2022 NOV)
- Find the real root of the Equcation: f(x) =x^3-4x-9=0 by using bisection method/ Bolzano method upto 3 decimal places ?
- R Programming
- Find the real root of the Equcation: f(x) =x^3-2x-5=0 by using bisection method/ Bolzano method in Five stage ?
- What is Machine learning ?