Comments in Java

Learn about single-line and multi-line comments in Java.

As a human, it is sometimes useful for us to leave notes in our source code for other humans and even for ourselves. We call these notes comments, and we write them in the following manner:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy