+ 2
Why we use java comments??
14 Answers
+ 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
+ 6
for better readability in our codes
+ 4
Maya Bouban no prob
+ 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
+ 1
Thank you
+ 1
rruplink thank you really helped me
+ 1
Both for self and for others to figure out what your code is for/about.
Without a manual, interpretation is more ??
0
Thank you both
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);
0
šš
0
y
0
šššš
0
to like order your codes, like your first topic is
//#####
######;
then, you have another topic,
//######
#######;
so then your code is organized