9-How to use comments the right way.

9-How to use comments the right way.

💬 Comments in Java: Single-Line, Multi-Line and Documentation Comments 📌 Introduction Comments in Java are non-executable statements used to explain code. They are ignored by the Java compiler and do not affect program execution. Comments play…