![]() |
![]() |
![]() |
![]() |
![]() |
|
Note that you cannot place a /* ... */ comment inside another
/* ... */ comment. If you try to do so, you find that the inner
comment's terminator, */, terminates the outer comment, and your
Java compiler cannot compile your program:
/* <-----------------------------------*
|
First part of outer comment |
|
/* <-- Commented out | Delimiter, */, of inner
| comment terminates delimiter,
Inner comment | /*, of outer comment
|
*/ -------------------------------------*
Second part of outer comment
*/ <-- Dangles