Menu
Topics Index
...
`

Creating and Implementing

There are multiple ways we can use the interface. Those are explained in this topic. This topic also explains about Marker Interfaces.

A simple interface. When class A implements IA, then it has to implement all the methods in the interface IA.
To learn more about Creating Interface In Java With Example Program read this topic Creating Interface In Java With Example Program

Write test for above topics


To learn more about Difference Between Interfaces And Abstract Classes read this topic Difference Between Interfaces And Abstract Classes

Using Extending

In Java, there comes a situation where we need to add an extra method to an already existing interface which will effect the functionality of all the classes implementing that particular interface. In order to avoid such situations Java have a special feature called extending interface using this concept a newly declared interface can extend the methods of an already existing interface.

Write test for above topics

Nesting of interfaces

Nested Interface in java is used to group related interfaces. An interface is said to be Nested Interface if and only if it is declared inside a class or an interface. In order to access nested interface it must be referred by the outer interface. It can't be accessed directly.

Write test for above topics

© meritcampus 2019

All Rights Reserved.

Open In App