javascript
Brief description  about Online courses   join in Online courses
View prashant  kapoor 's Profile

java programe

how to write a program to print the line I am the future Java Programmer in a single line and add the below types of comments appropriately to explain the functionality of the programme.
• Comments starting with //……….
Everything after //….. till the end of line will be ignored by Java Compiler.

• Comments within /*………*/
Everything between /*………*/ will be ignored by Java Compiler.

• Comments within /**………….*/
Everything between /**………*/ will be ignored by Java Compiler. Also, these comments will be documented by javadoc tool.
Asked by prashant kapoor | Jun 19, 2012 |  Reply now
Replies (1)
View rohit s ihare 's Profile
you have to write program for each comment type. one is given as below...
and try to do othres...
class FutureJavaProg /* class in java which implements a program to display a statement */
{

public static void main (String[] args) /* main method */
{

System.out.println("I am the future Java Programmer");
/* Displays statement */

}

}
Jun 19, 2012