KnowledgeBoat Logo
|

Computer Applications

Which of the following is the right way to use a comment in Java program?

  1. /* comment */
  2. /* comment
  3. // comment //
  4. */ comment */

Input in Java

44 Likes

Answer

/* comment */

Reason — /* comment */ is used to write multi line comments.

Answered By

24 Likes


Related Questions