Java Comments
Java Tutorial » Java Comments
We usually make comments in java to explain the code used and make it more readable. We also use it to prevent the execution of an alternative code.
One-line comments begins with two forward slashes "//" without quotes.
Any text between // and the end of the line will be ignored by Java, so the code will not be executed.
In the example below we show you a Java code with a comment on a single line
Example:
// This is a comment on single line
System.out.println("Hi, learn Java code with agernic.com");
System.out.println("Hi, learn Java code with agernic.com");
Another example uses a single-line comment at the end of a line of Java code:
Example:
System.out.println("Hi, learn Java code"); // This is a comment on single line
Java Multiple lines Comments
Multiple lines comments start with /* and ends with */.
Java will ignore any text between /* and */ .
Example:
/* The code below will print Hi, learh Java code
to the screen, and it is nice looking */
System.out.println("Hi, learh Java code");
to the screen, and it is nice looking */
System.out.println("Hi, learh Java code");
java comments multiple lines, link to method, shortcut, multiple lines shortcut, single line, important, line, block, shortcut intellij, style example
Java Comments - java
Online Editor
This tool makes it easy to create, adjust, and experiment with custom colors for the web.
HTML Templates

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.
CSS HTML Layout

Find here examples of creative and unique website layouts.
Free CSS HTML Menu

Find here examples of creative and unique website CSS HTML menu.