Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3878166
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:34:54+00:00 2026-05-19T22:34:54+00:00

Hi folks I am new to java programming.Can anyone suggest me some good reading

  • 0

Hi folks
I am new to java programming.Can anyone suggest me some good reading for JDBC connection.
I have to connect my java program to a database.
Also while searching on net i found the following statement a bit confusing

1)Connection dbConnection=DriverManager.getConnection(url,”loginName”,”Password”)

2)Statement statement = dbConnection.createStatement();

In the second statement “createStatement” is a method of “Interface Connection”.

How can i call a method of an interface??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:34:55+00:00Added an answer on May 19, 2026 at 10:34 pm

    Ajay,
    JDBC is an API (Standard) published by Sun (now Oracle 🙁 )..

    When you code, you use the API to write the code based in interfaces (NOTE: Open javadoc and see… JDBC is a collection of interfaces.. java.sql.* package)

    When you want to run the application, you have to use an implementation provided by the Database vendor…
    All DB vendors that provide JDBC support have to provide this implementation. classes12.jar or ojdbc14.jar etc… Open that jar file in zip utility and you can see the classes java.sql.Interface and so on…

    those are the concrete classes that implement the interfaces that you asked about in your question….

    SO you are actually using a concrete class. Learn about inheritance in java.

    these may help you

    http://www.oracle.com/technetwork/java/overview-141217.html

    http://download.oracle.com/javase/tutorial/jdbc/basics/index.html

    http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html

    http://www.roseindia.net/jdbc/jdbc.shtml [good hands on tutorial]

    hope this helps…

    Thanks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple Java program that reads in a text file, splits it
Folks, I am completely new to jQuery and JqGrid both. Usually I take some
Folks, I have this array: var list = new Array('Archer','Archer','Banker','Lantern','Toryboy','The Barb','Tim Whiffler','Glencoe','Warrior','Nimblefoot','The Pearl','The Quack','Don
Hi folks I have a map in my bootstrap.groovy, how can use this map
Good afternoon Folks. I am new to knockout JS, so don't laugh if it
I'm relatively new to Subversion, hoping to get some insights from more experienced folks.
I am new to spring mvc and have seen examples where folks use @ModelAttribute(form)
folks! I have project in cc.net and this project nay start by 3 ways
Folks I am surprised to see my code working, that I dont have any
Folks I have a sealed class as follows. I want to extend this sealed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.