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

  • Home
  • SEARCH
  • 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 8480015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:11:32+00:00 2026-06-10T19:11:32+00:00

This feels like a silly question, but it aggravates me as I don’t understand

  • 0

This feels like a silly question, but it aggravates me as I don’t understand where the methods are declared. In my code I can do things like (obviously this is a bit pseudo code)

ResultSet rs = DB.getConnection.sendSQL(select * from [table])

I understand that the sending of the SQL returns a ‘result set’ and although a ‘ResultSet’ is only an interface the returned object implements that interface.

My question is how does the returned object implement that interface? From what I read interface can only define a method signature, not a complete function.

So where are the functions defined? Obviously not in the ResultSet interface! Am I correct in understanding that this the job of the database Driver? (I think I may have just answered my own question).

Can I write an interface with a fully functioning method? Will any implementing classes then automatically implement that method, or do I just overwrite it with a call to ‘super’ or something?

I just found this other question on SO
How does abstract method of predefined interface like Connection, Statement etc. perform some task without having body?
which is a perfect duplicate, but much bette formulated. And a great answer

  • 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-06-10T19:11:33+00:00Added an answer on June 10, 2026 at 7:11 pm

    Classes that implement an interface are responsible for declaring all of the methods in the interface, and where appropriate implementing the internal logic for those methods.

    The interface is essentially saying “You have to provide functionality for this, but I don’t care how you do that. You just have to take inputs of these types and provide output of this type.” The class is where you implement how you get from the inputs to the outputs.

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

Sidebar

Related Questions

This feels like a really basic question, but I can't figure it out anyway..
OK, this feels like an idiot question, but I'm stuck - I don't know
This feels like a silly question but I'm stumped. I working on an iOS
This feels like a beginner question with a pretty obvious answer, but I can't
I feel like this is a silly question, but I can't find the answer.
This feels like a stupid question, but I can't seem to see the answer.
This feels like the kind of code that only fails in-situ, but I will
I feel like this is a silly question but I always find that modifying
This may seem like a silly question, but what are the functional differences, if
This feels like a dumb question, but I see the following in the Oracle

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.