Commenting code

Three types of comments exist, single-line,multi-line and Java doc comments

Single-line

Multi-line

Java-doc

Java-doc/multi-line comments cannot contain other multi-line/Java-doc comments.Otherwise, the compiler will throw "illegal start of type" Error message like in the example below.