G
G
Ghost PR2015-03-15 17:34:47
Java
Ghost PR, 2015-03-15 17:34:47

What is the difference between //, /** */ and /* */ comments?

Answer, please, I will be very glad, if possible, then quickly

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sanex3339, 2015-03-15
@sanex3339

// Однострочный комментарий

/**
 * Многострочный комментарий. Чаще всего используется для документации
 * Многострочный комментарий. Чаще всего используется для документации
 */

/* Многострочный комментарий
   Многострочный комментарий */

journals.ecs.soton.ac.uk/java/tutorial/getStarted/...

G
GavriKos, 2015-03-15
@GavriKos

//this line will be a comment,
and here is the code
/*and now everything below will be a comment
, and even this
and that
*/
And this is code again

G
Gluck Virtualen, 2015-03-16
@gluck59

The first is for one line, the rest do not differ from each other.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question