«
Prev
»
Next
Difference between default and static methods in Java interface.
| Default method. | Static method. |
| default method are used as a default implementation for classes that implements that interface. | static method in interface is used as Helper methods. |
| |
| default methods can be invoked by the implementation class objects. | static methods are similar to static class methods and can be invoked using Interface name. |
More Related questions...
Comments & Discussions