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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:34:32+00:00 2026-06-02T08:34:32+00:00

In java when an interface extends another interface: Why does it implement its methods?

  • 0

In java when an interface extends another interface:

  1. Why does it implement its methods?
  2. How can it implement its methods when an interface can’t contain a
    method body
  3. How can it implement the methods when it extends the other interface
    and not implement it?
  4. What is the purpose of an interface implementing another interface?

This has major concepts in Java!

EDIT:

public interface FiresDragEvents {

  void addDragHandler(DragHandler handler);

  void removeDragHandler(DragHandler handler);
}


public interface DragController extends FiresDragEvents {

  void addDragHandler(DragHandler handler);

  void removeDragHandler(DragHandler handler);

  void dragEnd();

  void dragMove();
}

In eclipse there is the implement sign besides the implemented methods in DragController.

And when I mouse-hover it, it says that it implements the method!!!

  • 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-02T08:34:33+00:00Added an answer on June 2, 2026 at 8:34 am

    Why does it implement its methods? How can it implement its methods
    when an interface can’t contain method body? How can it implement the
    methods when it extends the other interface and not implement it? What
    is the purpose of an interface implementing another interface?

    Interface does not implement the methods of another interface but just extends them.
    One example where the interface extension is needed is: consider that you have a vehicle interface with two methods moveForward and moveBack but also you need to incorporate the Aircraft which is a vehicle but with some addition methods like moveUp, moveDown so
    in the end you have:

    public interface IVehicle {
      bool moveForward(int x);
      bool moveBack(int x);
    };
    

    and airplane:

    public interface IAirplane extends IVehicle {
      bool moveDown(int x);
      bool moveUp(int x);
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Java, you can use instanceof to check if a class extends another class
There are three Java 1.6 interfaces inheriting one from another: interface First<T extends First<T>>
I am attempting to override a method declaration within an interface that extends another
I'm trying to implement a generic java interface in scala. I have looked at:
As you know, in a java interface, all methods have to be defined as
Our Java application has a number of modules which implement a common interface. By
In Java, you can do the following : public interface IEngine{} public interface ICoolEngine
I am learning Java and just found that the Interface can have fields, which
The interface NavigableSet<E> extends interface SortedSet<E> which declares the method SortedSet<E> subSet(E fromElement, E
In Java, it is perfectly legal to define final arguments in interface methods and

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.