学习视频:
①methods are implicitly : public and abstract
②fields are implicitly : public ,static and final
③inteface A inherits interface B use : extents
④Java 8:
- Default method: has body ,can be override,can use other methods in interface
- Static methods : like constants ,can be use without an instace of interface
- Functional Interfaces :
- with SAM (Single Abstract Method)
- can be implemented by lambda expressions or method refrences
- save us from having to write a whole class for a simple interface