Which of the option correctly describes the comments in java1) // -- single line comment2) /* --*/ multiple line comment 3) /** --*/ documentation

A) 1, 2
B) 2, 3
C) 3, 1
D) 1, 2, 3

Showing Answers 1 - 2 of 2 Answers

All these are legal comments in java.The third one, /**This is a comment */ might look new to c++ programmers,but it is very beneficial for the purpose of documentation,i.e. preparing a separate document file alongwith.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions