UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

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

why string class is override in euals()/ hashCode Hethods?
• In the above program we compared two string using equals() method and it returns true.and comparing using == operator returns false. • Basically equal() will also return false on comparing those two...
Rami Reddy
Why we are using this keyword in Java?
to access current object
Kiran
0 0
9
What are the difference between abstract class and Interface?
Abstraction : Hiding unnecessary details of object and shows only essential features of Object to communicate. abstract class : partially defined Object interface :Complete specification of Object class : Complete definition of Object
Ashish
What is a singleton class and when do you use it?
Singleton class have a private constructor. while we can't create an object from outside of class, we can create an object only once.
Prakash
what is serialVersionUID , why it different for each bean? serialVersionUID = 42L;
This id is used to identify the type of the class. This is required when you serialize and de serialize the object. If you have given a value to this id, this will be common for all the objects created...
Srilatha N

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

Ask a Question

Related Lessons

GIT
In software engineering, software configuration management (SCM) is the task of tracking and controlling changes in the software, part of the larger cross-disciplinary field of configuration management....
R

Java : Command Line Arguments
The parameters which are provided to the program at the command line. Eg:d:\>java a 10 20 30 Here,“java” is an interpreter, “a” is filename,10,20,30 are arguments passed to...
S

Svg Reddy

0 0
0

Inheritance In Java
Inheritance: The process of getting properties and behaviors from one class to another class is called inheritance. Properties: Variables Behaviors: Methods The main purpose of the inheritance...
D

Deleted U.

1 0
0

Design Pattern
Prototype Design Pattern: Ø Prototype pattern refers to creating duplicate object while keeping performance in mind. Ø This pattern involves implementing a prototype interface which tells...

Priority in TestNG
public class Priority { @Test (priority=1)public void login() {System.out.println("login");} @Testpublic void email1() {System.out.println("email1");} @Test (priority=-2)public void email2() {System.out.println("email2");} //I...
S

Sarthak C.

0 0
0

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
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more