Advertisements
Advertisements
Question
Which of the following is the right way to use a comment in Java program?
Options
/* comment */
/* comment
// comment //
*/ comment */
MCQ
Solution
/* comment */
Explanation:
/* comment */ is used to write multi-line comments.
shaalaa.com
Is there an error in this question or solution?