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

Is Java a better programming language than C++?
If you campareboth then java has an edge n many oppurtunities compared to c++
Coaching Center
What are the requirements of learning Java? How long it takes to learn java and what is the fee structure?
Core java is main to learn, if you join my classes it takes one month to become master.
Ruuchi
In what ways is C# similar to Java?
C# and Java share several similarities as both are influenced by C and C++: Object-Oriented Programming (OOP): Both languages are designed with a strong emphasis on OOP principles, including encapsulation,...
Aparna
0 0
5
Is it good to go for a Java coaching center and learn Java (with advanced Java) to improve my programming skills?
yes, Please check the Institute reviews and discuss with the tutor, what topics were covered in class. Ask about the practicals session and how many hours/duration of the course.
Gerda
0 0
5
Should we learn DBMS and RDBMS without any Java training?
java or i can say any programming language is not required to learn DBMS or RDBMS
Karthik
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

Introduction to Course Content
Video about what we are going to learn throughout the Java Training Session .

Puzzle Game coding
import java.awt.BorderLayout;import java.awt.Color;import java.awt.Dimension;import java.awt.Font;import java.awt.FontMetrics;import java.awt.Graphics;import java.awt.Graphics2D;import java.awt.RenderingHints;import...

Thread Class In JAVA
Thread Class: Thread class is the main class on which Java's Multithreading system is based. Thread class, along with its companion interface Runnable will be used to create and run threads for utilizing...

Mastering in Java Programming
Core java topics What is Java?Execution Model Of JavaBytecodeHow to Get Java?A First Java ProgramCompiling and Interpreting ApplicationsThe JDK Directory StructureUsing Eclipse Data types and Variables What...

What Is Applet & Its Life Cycle?
What is Applet & its life cycle?Applet is a Java programme that can be embedded into HTML page.Java Applet runs on the java enables web browsers such as Mozilla & Internet Explorer.Applets are...
I

Icreative Solution

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