user2228462 user2228462 - 8 months ago 40
Java Question

How Exactly Does @param Work - Java

How does the annotation


If I had something like this:

*@param testNumber;

int testNumber = 5;
if (testNumber < 6) {

How would the
affect the testNumber? Does it even affect the testNumber?

Thanks. Let me know if I used it wrong.


@param won't affect the number. I believe it's just for making javadocs.

More on javadoc: