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 8086015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:19:14+00:00 2026-06-05T18:19:14+00:00

When we create interface methods, can’t we do something like in java : void

  • 0

When we create interface methods, can’t we do something like in java:

void interface_method(Integer,String, /* other parameter */);

Instead I noticed that we also need to give the parameter names lile:

void interface_method(Integer i, String s);

Also the interface implementor don’t need to have the same parameter name as in interface method.

I found a similar question about c# over here . They mention one scenario of named parameter but I don’t find any other relevent reason specifically in java.

  • 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-05T18:19:16+00:00Added an answer on June 5, 2026 at 6:19 pm

    From a technical standpoint it wouldn’t be necessary.

    I’ve always taken it as a syntax normalization, and a documentation aid.

    This way there’s:

    1. No reason to differentiate between class and interface method syntax, and
    2. Default Javadoc documentation can be generated using the (descriptive!) parameter name.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Eclipse I can create a class with stub methods auto-generated for an interface.
In Java, you can create an abstract class that contains only abstract methods. On
I want to create search interface to search data from GAE datastore? Can i
I'm looking to create an interface where the user can navigate through large volumes
I am using DeDe to create an API (Interface) I can compile to. (Strictly
Can you create an interface which can only be applied to certain classes and
I like the things that templates methods can do for me, since they can
Can I create anonymous implementations of an interface , in a way similar to
Does exists a java library that can create sql statements? I'm not in search
i am trying to create a interface where its methods are protected or only

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.