Java

Default method in interface in java – part 1

This default method comes to scene when developers need to update existing interface without updating that interface implement classes updating.

Default methods must have to have an implementation.  And developer can update default method as they want but implemented classes can decide either update with newly added default method or not.

(more…)