user2228462 user2228462 - 4 months ago 14
Java Question

How Exactly Does @param Work - Java

How does the annotation

@param
work?

If I had something like this:

/*
*@param testNumber;
*/

int testNumber = 5;
if (testNumber < 6) {
//Something
}


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

Thanks. Let me know if I used it wrong.

Answer

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

More on javadoc: http://www.oracle.com/technetwork/java/javase/documentation/index-137868.html