What does the `@Inherited` annotation do in Java?
The `@Inherited` annotation allows an annotation applied to a superclass to be inherited by its subclasses.
Well done! You've correctly described the purpose of `@Inherited`.
Can you explain how `@Inherited` works in the context of class hierarchies, and can it be used with interfaces?