Hi there!
I've encountered the following, seemingly easy, question: " What modifiers are implicitly applied to all interface methods?" (
Java 8). The answer came really easy to me: public and abstract. Just to see that abstract was not correct anymore, because with the introduction of default and static methods the book says that it is not implicitly applied anymore. So I've opened my IntelliJ IDEA and after a short
test, I've noticed that even in Java 8, when in an interface, you write "void myMethod();" ,it seems that the two modifiers public and abstract are implicitly applied. And even more is that when I try to apply the abstract modifier "abstract void myMethod();", IntelliJ says that it is redundant.
The book is OCA by J. Boyarsky and S. Selikoff. Question 1 from the Review Questions / Chapter 5.