+ 2

What do you mean by nested multi-line comment?

17th Jul 2016, 1:37 PM
Trust Ugochukwu
Trust Ugochukwu - avatar
6 odpowiedzi
+ 7
A nested comment is a comment (multi-line or single-line) within a multi-line comment. Java supports nested single line comments. Example: /* multi-line comment comment comment comment comment // single-line comment comment comment comment */ but NOT nested multi-line comments Example: /* multi-line comment comment comment comment comment /* multi-line comment multi- line comment multi-line*/ comment comment comment */
1st Aug 2016, 4:04 AM
Leora Wright
Leora Wright - avatar
+ 1
although pointless, you can nest a comment within a comment like /** / outter comment /// inline comment ///////////////////// // nested comnent/// ///////////////////// */
22nd Jul 2016, 4:18 AM
Eric Gitangu
Eric Gitangu - avatar
0
/* this is multi line comment*/
6th Nov 2018, 5:43 PM
Amarnathreddy Siddhavatam
0
A comment with in a multiline comment is called nested multiline comment...Java supports to nest a single line comment with in a multiline comment but does not support a multiline comment with in a multiline comment
14th Nov 2018, 1:15 PM
Nandyala Priyanka
Nandyala Priyanka - avatar
0
Yes java is also supported multi line comment /*Hello Am AmarnathReddy*/
16th Nov 2018, 5:59 PM
Amarnathreddy Siddhavatam
- 1
i think it was the multi-line comment inside the multi line comment. you can nested single line inside the multi-line comment.
21st Jul 2016, 2:38 AM
mark