How a method in Java can be both abstract and declared as “optional”?

前端 未结 0 797
天命终不由人
天命终不由人 2020-12-09 23:42

For example in Collection interface, we have:

If the method is optional it means (I assume) that it does not have to be implemented. But, abstract methods HAVE to be

相关标签:
回答
  • 消灭零回复
提交回复
热议问题