0

What's the use of putting a single line comment between a multiline comment?

In multi-lines comment section you said "you can nest single-line comments within multi-line comments". But, what's the use of putting a single-line comment between a multi-line comment?

18th Nov 2016, 10:34 AM
Ujjwal Sehgal
Ujjwal Sehgal - avatar
4 ответов
+ 9
Multi-line comments are sometimes used to turn code into comments to prevent it from running. Single-line comments might be inside that code. It'd be annoying to have to remove them!
19th Nov 2016, 12:43 AM
Tamra
Tamra - avatar
+ 1
// this used for single line comments /* and this is for multiline comments */
18th Nov 2016, 2:15 PM
Dhruv Saxena
Dhruv Saxena - avatar
0
if you mean like this /** * The first and last name of this student. */ private String name; is for the javadoc https://en.wikipedia.org/wiki/Javadoc
18th Nov 2016, 10:55 AM
Simone Novaro
Simone Novaro - avatar
0
Okay, I got it now Thanks Tamra 😄
30th Nov 2016, 3:38 PM
Ujjwal Sehgal
Ujjwal Sehgal - avatar