Java Basic Tutorial
Java Advance Tutorial
In Java, comments are used to make the code more readable and explain what the code does. They are ignored by the compiler and do not affect program execution. Java supports three types of comments:
//
)//
. Anything after //
on the same line is ignored by the compiler./* ... */
)/*
and ends with */
. Everything between these markers is ignored by the compiler./** ... */
)/**
and ends with */
. Contains special tags to describe classes, methods, and parameters.