what is the /** comment? what's the difference between that and /* ?
Printable View
what is the /** comment? what's the difference between that and /* ?
Take a look here
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.
:)
/** 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
Code:/**
* 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")
Thanks guys, it's clear now :)