+ 1
can somone explain that "comments" lesson from java language?
im a beginner, need some help please? ;)
3 odpowiedzi
+ 3
Whatever you write in a comment doesn't affect your code, that comment being just a simple comment(in the real meaning of the word), that explains the others what you did and maybe sends a message or explains to you what you did, after a long time.
+ 13
what doubt U got in that lesson ?
//there are examples available too ,
comments are ignored by the compiler , its the text which might be needed to understand the code better & to provide some information
//probably U got doubt in "documentation comments" ... right ?
for that U must follow comment section of documentation comment lesson , wait I will be posting some links also
https://www.sololearn.com/Discuss/438155/?ref=app
https://www.sololearn.com/Discuss/774226/?ref=app
https://www.sololearn.com/Discuss/383818/?ref=app
+ 4
While you code you would use comments for people and you, yourself to understand that code and what you were doing.
//is a single line comment
/*is
a
comment
for
multiple
line
*/