What are comments? Name the different types of comments used in Java.
Question : What are comments? Name the different types of comments used in Java.
A comment is a programmer-readable explanation or annotation in the source code of a computer program. The different types of comments in Java are:
- Singleline comment
- Multiline comment