Computer Store
-Collapse +Expand
Search Java Group:

-Collapse +Expand Java To/From
-Collapse +Expand Java Store

Prestwood eMagazine

July Edition
Subscribe now! It's Free!
Enter your email:

   ► KBProgrammingJavaStandard JavaTool Basics   Print This     
Java Tool Basics:
Java Comments (// or /* ... */)
Posted 12 years ago on 11/4/2008 and updated 1/4/2009
Java Code Snippet:
 A flashcard from our Java Flashcards Library
 A code snippet from our Java Code Snippets Page
 Tags: Java , Comments


Languages Focus: Comments

Commenting code generally has three purposes: to document your code, for psuedo coding prior to coding, and to embed compiler directives. Most languages support both a single line comment and a multiple line comment. Some languages also use comments to give instructions to the compiler or interpreter.

Java Comments

Commenting Code
Java uses "//" for a single line comment and /* */ for a multiple line comment.

Syntax Example:
//Single line comment in MS (not ANSI compliant so do NOT use).
/* ANSI compliant single line comment. */
Multiple line
* This is another popular way 
* to write multi-line comments.


Share a thought or comment...
First Comment
Comment 1 of 10

The perfect formates for commenting, I know about the document creation and finding the more paragaphs here. Follow the boomessays review site for more updates on essay reviews and great writing tips.

Posted 81 days ago

Comment 2 of 10

Thanks for sharing such a great configuration guide. It is really helpful to updates and manages web contents easily. Top Gun Jacket

Posted 81 days ago

Comment 3 of 10

Very well written post and very helpful to me. I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. Drive Jacket

Posted 81 days ago

Comment 4 of 10

We are really happy you just read this article which often holds several helpful information, many thanks intended for giving these kind of information. Money heist costume

Posted 81 days ago

Comment 5 of 10,m862f6,topic,1&m862f6returnid=112&m862f6prev_link=reply_topic&m862f6tid=927892&m862f6fid=8&m862f6message=Action%20was%20successfully%20performed
Posted 74 days ago

Comment 6 of 10

It‘s Such an amazing Article I really Love that one Now you can also get some special Coupon Codes From International Plastics promo codes , So hurry up Get Your‘s Now!!

Posted 69 days ago

Comment 7 of 10

A debt of gratitude is in order for sharing such an extraordinary setup manage. It is extremely useful to refresh and oversees web content without any problem. Video Game Leather Jackets

Posted 38 days ago

Comment 8 of 10

WonderMouse Technology is a Digital marketing company in delhi. We market brands on the web & make sure that you get bang for your buck by SEO, SEM, PPC, SMO, Email Marketing, etc. Internet WonderMouse Technology is the pioneer in making Ecommerce a smooth ordeal and top website designing company in Delhi knows it great. The platforms are designed specifically to enhance the consumer panorama of corporate websites. We offer customized and affordable best seo services in india which are designed to the needs, desires and budget of our clients.

Posted 38 days ago

Comment 9 of 10

Very elegantly composed post and supportive to me. I needed to thank you for this extraordinary read!! I unquestionably getting a charge out of each and every piece of it and I have you bookmarked to look at new stuff you post. Assignment Writing Services

Posted 32 days ago

Latest Comment
Comment 10 of 10

There is a list of viable future-related topics as well as some tips that will make it easier for you to write about them the next time you receive an assignment of this kind in Homework Writing Service

Posted 31 hours ago
Write a Comment...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.

Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1121A1
Enter key:
Code Contributed By Mike Prestwood:

Mike Prestwood is a drummer, an author, and creator of the PrestwoodBoards online community. He is the President & CEO of Prestwood IT Solutions. Prestwood IT provides Coding, Website, and Computer Tech services. Mike has authored 6 computer books and over 1,200 articles. As a drummer, he maintains and has authored 3 drum books. If you have a project you wish to discuss with Mike, you can send him a private message through his PrestwoodBoards home page or call him 9AM to 4PM PST at 916-726-5675 x205.

Visit Profile

 KB Article #101503 Counter
Since 11/4/2008

©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech