+ 1
Could any say what's the difference between nested interfaces and extending interface in java??
2 Respostas
+ 1
Nested interface:
Specifications of interface within another interface.
Ex:
interface A{
..
public interface B{
..
}
..
}
https://www.javatpoint.com/nested-interface
Extending interface :
An interface can extends another interface so sub interface have all abstract methods of both interfaces...
Ex:
interface A {
..
}
interface B extends A
{
...
}
https://www.scientecheasy.com/2019/05/interface-in-java.html/
0
Jayakrishna🇮🇳 -- Thankyou