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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:35:45+00:00 2026-06-17T22:35:45+00:00

When using Eclipse’s Extract Interface refactoring, it will declare the methods public abstract by

  • 0

When using Eclipse’s “Extract Interface” refactoring, it will declare the methods public abstract by default. Why? public modifier on an interface is completely redundant and abstract also seems meaningless on an interface declaration.

  • 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-17T22:35:46+00:00Added an answer on June 17, 2026 at 10:35 pm

    These keywords are indeed redundant. I personally wouldn’t use them in this context, but I can see why someone might prefer to include them.

    The JLS explicitly discourages this practice:

    It is permitted, but discouraged as a matter of style, to redundantly specify the public and/or abstract modifier for a method declared in an interface.

    In my version of Eclipse (Juno SR1), there are two options in the Extract Interface dialog:

    • declare interface methods as public;
    • declare interface methods as abstract.

    If you untick them, Eclipse should no longer include the two keywords when you extract an interface.

    There is a pending Eclipse bug report to clean up the redundant modifies.

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

Sidebar

Related Questions

I am Using Eclipse Virgo/Gemini Blueprint and have an Interface with multiple implementations: Implementation
Using Eclipse, how can I find which Java classes implement interface A AND interface
Using Eclipse Indigo and Birt downloaded from the default update site on Ubuntu 11.10
Using Eclipse, working with (ANSI) C language, is there any way to view the
Using Eclipse/Subversive I commanded it to delete a branch of mine. Unfortunately it also
Using Eclipse IDE. The line: getClass().getResource(/res/bitmaps/image.png); returns null . I have created the res
When using Eclipse over X-Windows on a remote shell (X port forwarding), is there
When using Eclipse PDT with XDebug to debug a PHP web application, is there
When using eclipse on ubuntu, for some reason it crashes/stops responding when loading an
When debugging Java code using Eclipse, for collection variables, I saw the modcount member.

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.