+ 2

Why we use java comments??

13th Jul 2018, 6:03 PM
Maya Bouban
Maya Bouban - avatar
14 Respuestas
+ 7
Hello, Maya Bouban ! In Java you can use the comments function: insert the documentation into the source code. A delimited comment is a text that makes sense for a person, but not for a compiler. When compiling the source, the Java compiler ignores all comments; it does not generate a bytecode for them. Java supports single-line, multi-line, and Javadoc comments. You can learn much more in the lesson from SoloLearn. https://www.sololearn.com/learn/Java/2138/?ref=app
13th Jul 2018, 6:52 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 6
for better readability in our codes
13th Jul 2018, 6:06 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 4
Maya Bouban no prob
13th Jul 2018, 6:08 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 2
In the future,or other person in your team future:maybe in future you have to using it again and u don’t know how to use it comment will help you
13th Jul 2018, 7:15 PM
Seyedmm021
Seyedmm021 - avatar
+ 1
Thank you
13th Jul 2018, 6:07 PM
Maya Bouban
Maya Bouban - avatar
+ 1
rruplink thank you really helped me
13th Jul 2018, 7:59 PM
Maya Bouban
Maya Bouban - avatar
+ 1
Both for self and for others to figure out what your code is for/about. Without a manual, interpretation is more ??
15th Jul 2018, 5:14 AM
Apple Blossom
Apple Blossom - avatar
0
Thank you both
13th Jul 2018, 7:18 PM
Maya Bouban
Maya Bouban - avatar
0
For two main reasons: to remember what certain pieces of your code does and to allow people you are working with to understand what you did. For example, you might not need comments if all you're writing is System.out.prinln("Hello World!") but they are definitely very helpful if you are writing something like Foo foo = new Foo(); System.out.println(foo.getFoo().fubar);
13th Jul 2018, 7:54 PM
rruplink
rruplink - avatar
0
😈😁
15th Jul 2018, 3:01 PM
jaan khan
jaan khan - avatar
15th Jul 2018, 3:02 PM
jaan khan
jaan khan - avatar
0
y
15th Jul 2018, 3:02 PM
jaan khan
jaan khan - avatar
0
🎂🎂🎁👑
15th Jul 2018, 3:03 PM
jaan khan
jaan khan - avatar
0
to like order your codes, like your first topic is //##### ######; then, you have another topic, //###### #######; so then your code is organized
24th Jul 2018, 6:54 AM
George