0

What's the different btw : comments, multi-lne comments and doc comments?

22nd Oct 2016, 2:50 PM
Youssra Lina
Youssra Lina - avatar
3 Antworten
+ 1
The idea of comment and multi-line comment is the same you are hiding from compiler part of code. You can put multi-line comment(/*...*/) for the block of code or comment(//) all lines of that block. It's the same.
24th Oct 2016, 1:52 PM
karapet kuzikyan
karapet kuzikyan - avatar
+ 1
Yeah, they both make lines you can read, but the computer ignores, however multiline comments /* allow your comments to take up multiple lines. */ and single line comments //will end before the next line. Javadoc comments function the same as multiline comments, they just look better and cleaner.
25th Oct 2016, 8:18 PM
Bobby Turnip (Scye)
Bobby Turnip (Scye) - avatar
0
ah. so in the end it's the same idea we're talking abt here. 😃thnx I appreciate it ^^
24th Oct 2016, 3:18 PM
Youssra Lina
Youssra Lina - avatar