Basics

Comment

Java

 

Inline Comment

Java 8
// This is a comment

// This syntax can only have one line of text

Anything after // on the line is considered a comment and won't be executed.

 

Multiline Comment

Java 8
/*
    This is a multiline comment.
    You can have as many lines as you 
    want here.
*/

Anything between /* and */ is considered a comment and won't be executed.