Forum : Same Questions
Brief description  about Online courses   join in Online courses
View Mohan  M 's Profile

Same Questions

3. Please write a program to print the line I am the future Java Programmer in a single line and add the below type comment in each line to explain the functionality of that line.
Comments starting with //……….
Everything after //….. till the end of line will be ignored by Java Compiler.

4. Please write a program to print the line I am the future Java Programmer in a single line and add the below type comment in each line to explain the functionality of that line.
Comments within /*………*/
Everything between /*………*/ will be ignored by Java Compiler.

5. Please write a program to print the line I am the future Java Programmer in a single line and add the below type comment in each line to explain the functionality of that line.
Comments within /**………….*/
Everything between /**………*/ will be ignored by Java Compiler. Also, these comments will be documented by javadoc tool.

6. Please 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.


Question no.3, 4 and 5 are the same as Question no.6 in Assignment 2 of Java Developer course...What am I supposed to do?
Asked by Mohan M | Aug 3, 2010 |  Reply now
Replies (1)
View arun kumar das 's Profile
Hi Mohan,

All the above 4 questions have different comment types. please demonstrate the use of each type of comment in questions 3,4,5 and all three together in assignment 6.

Regards,
Java Teacher
Aug 4, 2010