+ 2
What do you mean by nested multi-line comment?
6 Antworten
+ 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 */
+ 1
although pointless, you can nest a comment within a comment like
/**
/ outter comment
/// inline comment
/////////////////////
// nested comnent///
/////////////////////
*/
0
/* this is multi line comment*/
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
0
Yes java is also supported multi line comment
/*Hello
Am AmarnathReddy*/
- 1
i think it was the multi-line comment inside the multi line comment. you can nested single line inside the multi-line comment.