Online GK Series

This site is dedicated to the aspirants of competitive exams SSC, UPSC, Railways, Bank, GATE and NET


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*/

Your Valuable Comments Please...

Please Like Us