What’s the difference between interface and @interface in java?

The @ symbol denotes an annotation type definition.

That means it is not really an interface, but rather a new annotation type — to be used as a function modifier, such as @override.

See this javadocs entry on the subject.

Leave a Comment