Interface vs Abstract Classes

前端 未结 4 1750
不知归路
不知归路 2021-01-14 05:35

I am a little bit familiar with the difference between Abstract and Interface classes but What do you think is the meaning of the sentence below?

An i

4条回答
  •  别那么骄傲
    2021-01-14 05:47

    Well the statment is technically incorrect what they are refering to is that all variables on an interface must be declared static whereas abstract classes have no such limitation.

    The statement is incorrect since Java does not have constants only final which are still modifiable and thus not constant.

提交回复
热议问题