Computer Applications

Which of the following is a valid comment in Java language?

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

Input in Java

35 Likes

Answer

//comment

Reason — In Java, the comment statements are written using double slash (//).

Answered By

24 Likes


Related Questions