we also have Documentation comments: Syntax: /** ... */ These comments start with /** and end with */. They are specifically used for generating documentation using tools like Javadoc. Documentation comments can include special tags (e.g., @param, @return) to describe the code's behavior, parameters, and return values. /** * This method adds two integers. * * @param a the first integer * @param b the second integer * @return the sum of a and b */ public int add(int a, int b) { return a + b; }
Thanks for highlighting this and thanks for the detail explanation. I wanted to cover these once i start the OOPs concepts. These are called Java docs. These are bit different from comments. But yes for the people who are seeing these kind of comments they may get confuse.
Thank you Bhushan great course really appreciated how are you giving free knowledge to the world
Thank you Bhushan for providing the course
we also have Documentation comments:
Syntax: /** ... */
These comments start with /** and end with */. They are specifically used for generating documentation using tools like Javadoc. Documentation comments can include special tags (e.g., @param, @return) to describe the code's behavior, parameters, and return values.
/**
* This method adds two integers.
*
* @param a the first integer
* @param b the second integer
* @return the sum of a and b
*/
public int add(int a, int b) {
return a + b;
}
Thanks for highlighting this and thanks for the detail explanation.
I wanted to cover these once i start the OOPs concepts.
These are called Java docs. These are bit different from comments.
But yes for the people who are seeing these kind of comments they may get confuse.