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?
4 Respostas
+ 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!
+ 1
// this used for single line comments
/* and this is
for
multiline comments */
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
0
Okay, I got it now Thanks Tamra 😄