How to write Multiline comments in Java

How to write Multiline comments in Java

In this post we will give you information about How to write Multiline comments in Java. Hear we will give you detail about How to write Multiline comments in JavaAnd how to use it also give you demo for it if it is necessary.

we are going to learn about how to write a multiline comments in Java.

In Java, we can write a single-line comment by using the two forward slashes// followed by the comment.

// this is a single line comment

Multiline comments

Multiline comments in Java starts with /* and ends with */.

Any text we can add between /* and */ is ignored by the java compiler

Here is an example:

/*you can see meein multiple lines*/

In the eclipse code editor, we can use the following keyboard shortcut to comment multiple lines.

Ctrl + Shift + /

Hope this code and post will helped you for implement How to write Multiline comments in Java. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US