Click to See Complete Forum and Search --> : [Resolved] /** ?
MrPolite
Jul 4th, 2003, 03:11 AM
what is the /** comment? what's the difference between that and /* ?
crptcblade
Jul 4th, 2003, 11:08 AM
Take a look here (http://java.sun.com/j2se/1.4.2/docs/api/index.html)
Those documents are generated by a tool called javadoc. It comes with the SDK. The /** comment indicates to the javadoc tool that it should use that comment in the html document it generates.
Look around sun's site for exactly how to use it.
:)
Memnoch1207
Jul 4th, 2003, 11:09 AM
/** is generally used for documentation comments. Comments about who wrote the code what the app does, etc...
/* and // are generally used as regular comments, such as what a specific line of code does.
Example
/**
* Application Name: MyApp
* Designed By: Me
* 12/12/2000
*/
system.out.println("Hello World") // prints Hello World to the screen
/* The following line prints Hello World to the screen */
system.out.println("Hello World")
MrPolite
Jul 4th, 2003, 02:07 PM
Thanks guys, it's clear now :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.