What's the output for the following documentation comment? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's the output for the following documentation comment?

/**I'm confused*/

5th Aug 2018, 5:53 AM
Mohammed Noushir
Mohammed Noushir - avatar
8 Answers
+ 2
happy to help
5th Aug 2018, 6:41 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 2
comments are not executed....
5th Aug 2018, 6:21 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 2
same answer... comments are for code readability and not executed
5th Aug 2018, 6:23 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 2
that's also correct.. but the fact remains same that it's for code readability and output doesn't differ due to comment.. you may refer below if it interests you : https://docstore.mik.ua/orelly/java-ent/jnut/ch07_03.htm
5th Aug 2018, 6:31 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
Thanks for sharing your thoughts
5th Aug 2018, 6:37 AM
Mohammed Noushir
Mohammed Noushir - avatar
0
What if the comment is mentioned like below? /**********I'm still confused********/
5th Aug 2018, 6:22 AM
Mohammed Noushir
Mohammed Noushir - avatar
0
But the lesson says the following: Documentation comments are special comments that have the appearance of multi-line comments, with the difference being that they generate external documentation of your source code. These begin with a forward slash followed by two asterisks, and end with an asterisk followed by a forward slash.
5th Aug 2018, 6:26 AM
Mohammed Noushir
Mohammed Noushir - avatar
0
Here's the example of the lesson: /********************** This is the start of a method ***********************/
5th Aug 2018, 6:27 AM
Mohammed Noushir
Mohammed Noushir - avatar