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

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

Ask a Question

Related Lessons

Use of Service Locator Pattern
If we want to reuse the java code that should be the best approach w.r.t re-usability, maintanence and saving time to concentrate on our own businbess logic/requirement. In the similar approach many patterns...
M

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...

Java Learning Tip
The easy way to learn any programatical language is just simple practices. Take a simple examples and practice daily one hour. And also go through the learning videos from youtube or somewhere else.

Free selenium video tutorial
Hi All, Hope you are doing good. We uploaded few videos on Selenium components like IDE, RC and Webdriver on youtube channel you can watch them for free of cost. Kindly search with below link: ...
S

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...

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