There are basically two ways for writing comments in code:
1)Single line comments- In single line comments,we only apply comments in one line only.
eg- //retrun sum of two variable
2)Multi line comments-In multi line comments,we apply comments in various line.
eg-{/*
Multi
line
comment
*/}