To represent keywords while writing Java Docs should I use the <code> element or the <tt> element? Are there specific situations when one should be preferred over the other?
To represent keywords while writing Java Docs should I use the <code> element or
Share
For inline code in Javadocs,you should use
{@code your-code-here}See javadoc –
{@code text}for more details.