Relates :
|
|
Relates :
|
|
Relates :
|
While default methods are useful when adding new methods to interfaces, when convenience methods on existing interfaces are defined in terms of calling other methods of the interface, the existing methods can be turned into default methods. This situation exists with AnnotatedElement.isAnnotionPresent and AnnotatedElement.getAnnotation.
|