+ 4

Comments in java

documentation comment is for 2 lines. can we use it for 3 lines?

8th Oct 2017, 8:00 PM
Lamb of God
2 Antworten
+ 17
/* <anything > */ ==== /*<*anything*>*/ ==== /**<anything>**/ do u see any difference between multiline comment and documentation comment ??? //try to see ... observe things carefully ☺ //note ::: u can enter any number of lines between multiline comment thats why its name is multiline comment 😁 ...& documentation comment is also multiline comment ... only "*" added //more u observe ... more u learn
8th Oct 2017, 8:24 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 4
In Java, the single-line comment is: // Java's multi-line comment is : /* */. the comment text goes in between the two *s. the multi-line comment can be any number of lines long.
8th Oct 2017, 8:16 PM
Zackery Fleming
Zackery Fleming - avatar