Search code examples
javajavadoc

What is the @linkplain tag used for and how does it differ from @link


I am wondering what exactly is the difference of the JavaDoc tags @link and @linkplain.

They both seem to generate the same html code.


Solution

  • It produces different formatting in javadoc you can try it in IDE:

    {@link #method()} - monospaced formatting (code)

    {@linkplain #method()} standard formatting

    Example:

    enter image description here