Java language has support for which of the following types of comment ?

A block, line and javadoc
B javadoc, literal and string
C javadoc, char and string
D single, multiple and quote
Answer & Explanation
Option: [A]

Java supports three types of comments.

(i)Single line i.e. line e.g. //comment

(ii)Multi line i.e. block e.g. /*comment*/

(iii)Javadoc comments e.g. /**comment*/

Month-wise Current Affairs 2021

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test