I'm reading about some articles[1][2] online about nested interface in Java, I understand that
interface A {
...
interface B { // this is static by default
...
}
}
But I'm not sure that
class C {
...
interface D { // Is this static by default? Why?
...
}
}
In short, is that "a nested interface is always static" true?
[1] https://beginnersbook.com/2016/03/nested-or-inner-interfaces-in-java/
[2] https://www.programcreek.com/2013/08/inner-interface-in-java/