I need to know about JDBC. Can you help me please?

Asked by Last Modified  

19 Answers

Learn Java

Follow 0
Answer

Please enter your answer

Software Developer, Expertise in Java/J2ee Technology.

JDBC is an api, which is used to connect Java program to database.
Comments

IT Professional Trainer with 18 years of experience in IT Industry

JDBC is java API to connect java technology program with any database like oracle, sql server and you can perform the database related opearation.
Comments

3 yrs teaching experience in Java/J2EE

JDBC stands for Java database connectivity. Basically it is use to established the connection with database than u can insert, update and delete operations on this.
Comments

JDBC is a java database connectivity.It has standard set of API which is used to interact with the database through JAVA.JDBC API provides interfaces and classes to work with databases. Connection interface encapsulate database connection functionality Statement interface encapsulates SQL query representation...
read more
JDBC is a java database connectivity.It has standard set of API which is used to interact with the database through JAVA.JDBC API provides interfaces and classes to work with databases. Connection interface encapsulate database connection functionality Statement interface encapsulates SQL query representation and execution functionlity ResultSet interface encapsulates retrieving data which is coming from execution of SQL query using Statement. read less
Comments

Industry expert and professional lecturer/trainer

JDBC stands for Java Database Connectivity. It uses JDBC ODBC bridge to make connections to DB which converts SQL in Java to DB engine understandable code. It is a Java API for DB operations
Comments

It is used to connect to the Database through Java API.
Comments

Computer Teacher / Corporate Trainer

Hi, what kind of help u need ?
Comments

Oracle Certified Tutor

Yes.
Comments

Realtime Data integration Expert and trainer

JDBC (Java Database Connectivity) is a Java API that can access any kind of tabular data, especially data stored in a Relational Database. It works with Java on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. The JDBC library includes APIs for each of the tasks associated...
read more
JDBC (Java Database Connectivity) is a Java API that can access any kind of tabular data, especially data stored in a Relational Database. It works with Java on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. The JDBC library includes APIs for each of the tasks associated with database usage: 1. Making a connection to a database. 2. Creating SQL or MySQL statements. 3. Executing that SQL or MySQL queries in the database. 4. Viewing & Modifying the resulting records. Fundamentally, JDBC provides a complete set of interfaces that allows for portable access to an underlying database. read less
Comments

IT tutor

Java JDBC is a java API to connect and execute query with the database. JDBC API uses jdbc drivers to connect with the database. JDBC Driver is a software component that enables java application to interact with the database.There are 4 types of JDBC drivers: JDBC-ODBC bridge driver Native-API driver...
read more
Java JDBC is a java API to connect and execute query with the database. JDBC API uses jdbc drivers to connect with the database. JDBC Driver is a software component that enables java application to interact with the database.There are 4 types of JDBC drivers: JDBC-ODBC bridge driver Native-API driver (partially java driver) Network Protocol driver (fully java driver) Thin driver (fully java driver) There are 5 steps to connect any java application with the database in java using JDBC. They are as follows: Register the driver class Creating connection Creating statement Executing queries Closing connection The forName() method of Class class is used to register the driver class. This method is used to dynamically load the driver class. public static void forName(String className)throws ClassNotFoundException Class.forName("oracle.jdbc.driver.OracleDriver"); The getConnection() method of DriverManager class is used to establish connection with the database. 1) public static Connection getConnection(String url)throws SQLException 2) public static Connection getConnection(String url,String name,String password) throws SQLException Example to establish connection with the Oracle database Connection con=DriverManager.getConnection( "jdbc:oracle:thin:@localhost:1521:xe","system","password"); The createStatement() method of Connection interface is used to create statement. The object of statement is responsible to execute queries with the database. Syntax of createStatement() method public Statement createStatement()throws SQLException Statement stmt=con.createStatement(); Example to execute query ResultSet rs=stmt.executeQuery("select * from emp"); while(rs.next()){ System.out.println(rs.getInt(1)+" "+rs.getString(2)); } 5) Close the connection object By closing connection object statement and ResultSet will be closed automatically. The close() method of Connection interface is used to close the connection. Syntax of close() method public void close()throws SQLException Example to close connection con.close(); Hope this would help you. read less
Comments

View 17 more Answers

Related Questions

How do I show a popup message over a system tray icon/application in Java?
The java.awt.SystemTray class introduced in Java™ SE version 6 represents the system tray for a desktop. The system tray can be accessed by calling the static SystemTray.getSystemTray() method. Before...
Ajith
0 0
5
How to find a good Java coaching centre?
Its all depends on the trainer and his expertise. I would suggest you to get feedback from the students who already joined.
Abirami
1 0
6

What do you understand by Object and Class?

An object is memory that can represent the data of real object , class is plan for object memory structure so we can say class is also a data typed for creating objects
Afsal
Is learning Java worthwhile?
Yes, learning Java is worthwhile for versatile career opportunities in web, mobile, and enterprise development.
Shantanu
0 0
5
Who can provide good Java training with real-time but not institute?
If you reside in pune then i can provide real time programming in java . So you will get to know industry based java programming
Sridevi
0 0
6

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Migration from other languages to Salesforce
Anyone can easily migrate from other language to Salesforce. People must have skills to understand business logic.

Spring - Dependency Injection (DI)
Spring - Dependency Injection (DI) DI is a framework which provides loose coupling in code. Here loose coupling means no hard coding of the object. Instead of hard coding, we will be injecting these object...

Object Oriented Programming Concepts :
Class : Class is user defined data type. Class is a logical representation of an Object. That means Class is used to define an object, how you want to create your software object. For Example...

1.3. Find the second largest element in an array.
public class Main { public static void main(String args) { int arr = {1, 3, 4, 6, 5}; int max = Integer.MIN_VALUE, secondMax = Integer.MIN_VALUE; for (int i = 0; i < arr.length; i++) { if (arr >...

2.1. Reverse a singly linked list.
class Node { int data; Node next; Node(int data) { this.data = data; this.next = null; }} public class LinkedList { Node head; public void reverse() { Node prev = null; Node curr = head; Node next =...

Recommended Articles

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you