hi folks,

No More fear of pointers........


Break the old rhythm.Explore the new horizons.


Be a crew member to the new ship......


get easy solutions to solve ur programming issues



WELCOME TO THE WORLD OF JAVA

Comments in Java Code

/**
@author:surendranadh reddy
* The HelloWorldApp class implements an application that

* simply displays "Hello World!" to the standard output.

*/

class HelloWorldApp

{

public static void main(String[] args)

{

System.out.println("Hello World!"); //Display the string.

}

}



The Java language supports three kinds of comments:

/* text */

The compiler ignores everything from /* to */.



/** documentation */

This indicates a documentation comment (doc comment, for short). The compilerignores this kind of comment, just like it ignores comments that use /* and */.



// text

The compiler ignores everything from // to the end of the line

No comments:

Search This Blog