Found this javadoc in some core java classes, what is meaning of this? when to use in writing javadoc?
All variables declared inside interface are implicitly public, static and final. All methods declared inside interfaces are implicitly public and abstract, even if you don't use public or abstract keyword. Interface can extend one or more other interface.
In Java 8 you can use @FunctionalInterface annotation on interfaces with a single abstract method. It is an informative annotation type used to indicate that an interface type declaration is intended to be a functional interface. Annotation forcess to have exact one abstract mehtod. Save this answer.
@jls
indicates a reference to a section of the Java Language Specification.
See for example:
The last annotation in your question, @since
, is used to indicate the Java version (1.8
being Java 8) in which the documented class or method was first made available.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With