Why is it allowed to declare a static class inside an interface?

public interface I1 { static class Test{} } 

Why does Java allow a class written in an interface?

Is it good to write a static class in an interface? any example where we can use it effectively?

+6
source share

Source: https://habr.com/ru/post/948490/


All Articles