Basic Java Language: Difference between revisions

wikademia>MetaBohemian
→Valid Identifiers: added reserved words table
wikademia>MetaBohemian
→Comments: corrected javadoc comment
Line 305: Line 305:
<pre>/* Comment 1  
<pre>/* Comment 1  
Comment 2  
Comment 2  
Comment 3 */</pre>
Comment 3 */</pre>
Sun recommends the above form be reserved for information intended for automatic JavaDoc documentation.
 
A multiline comment that opens with two asterisks
 
<pre>
/** Like this */
</pre>
 
is called a '''javadoc comment'''. As a general rule, don't use these unless you mean to run the javadoc program on your code.


=Compiling and Running your program=
=Compiling and Running your program=