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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:59:40+00:00 2026-05-27T11:59:40+00:00

I have tried to google this one, but I can’t find an acceptable answer.

  • 0

I have tried to google this one, but I can’t find an acceptable answer. Is interface inconsistency, when you make a class implement 2 or more interfaces which are incompatable with each other? For ex:

public interface Lion()
{
    public void eat();
}

public interface Tiger()
{
    public void eat();
}

public class Liger implements Lion, Tiger
{
    public void eat(); //Problem: How does it eat? Like a lion or tiger?
}

Am I correct or way off base?

  • 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-27T11:59:41+00:00Added an answer on May 27, 2026 at 11:59 am

    In Java, you are guaranteed that an two interface methods which compile to the same function return the same “type”…. Thus, in this context, interface inconsistency can refer to :

    1. When you implement 2 methods that implement the exact same function, with different side-effects , or diferent underlying assumptions/algorithms that are not expressible in the method signature… i.e. two methods that “look” the same but that “do” different conceptual tasks.

    2. There is also the (non-java specific) GUI connotation, wherein the user experience is confusing, with similar components being utilized for different tasks (or vice-verse, the same task being triggered by different GUI components).

    The solution to 1 is to have a more expressive interface, or more precise function names (to exemplify a more sophisticated interface: maybe the Lion and Tiger should provide an Eater object, which is capable of eating in one or more different ways).

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

Sidebar

Related Questions

I have tried to search for an answer in google, and this site, but
I have google'd it, and tried some examples, but I always get stuck. This
Have tried to find solutions for this and can't really come up with anything.
I am really struggling with this one. I have Google'd this and tried most
This may be a dumb question, but I can't seem to find an answer
I have one issue, but I'm not getting a solution. I tried Google too.
I've searched Google and this website many times, but can not find a solution
I've seen this syntax show up, and have tried to google for it's definition
How to make a sticky footer i have tried on google found some results
I have tried searching on Google and also read the documentation but no success.

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.