Forum : comments
Brief description  about Online courses   join in Online courses
View Mohan  M 's Profile

comments

Should "//" be typed for each comment line?
or single "//" at the beginning of n lines of comment?

for eg: //This MyFirstJavaProgramme class implements an application that simply prints “Hurray! This is my first Java programme!!” to standard output.

or

//This MyFirstJavaProgramme class implements an
//application that simply prints “Hurray! This is my
//first Java programme!!” to standard output.

Which one of the two is correct?
Asked by Mohan M | Aug 6, 2010 |  Reply now
Replies (1)
View arun kumar das 's Profile
Hi Mohan,

Second one is correct.

Cheers...
JT
Aug 8, 2010