Why declare an interface as abstract?

前端 未结 11 941
予麋鹿
予麋鹿 2020-12-13 03:36

What\'s point of declaring an interface as abstract? Same thing for an interface method. Is there a point to it?

eg.

public abstract interface Presen         


        
11条回答
  •  萌比男神i
    2020-12-13 04:19

    Question: Can we declare an Interface with “abstract” keyword? Answer: Yes, we can declare an interface with “abstract” keyword. But, there is no need to write like that. All interfaces in java are abstract by default. Same applies to interface methods

    Please go throw this link https://javaconceptoftheday.com/java-interview-questions-on-interfaces/

    INTERFACE CAN HAVE STATIC METHOD SINCE JAVA8

提交回复
热议问题