I tried searching through the Oracle documentation for an explanation of what the
@code
java annotation does.
From a previous question, I realized that it has something to do with html, but I'm not sure exactly what...
Would it be correct to say that by default javadoc is parsed as HTML...
But placing the @code
annotation next to some javadoc text will indicate that it should be treated as code, and not parsed/rendered in the usual way?
So for example:
/**
*This is how to declare an int variable {@code int var=1;}
*/
Would that be a proper example of its use?