Write a line comment and block comment for the following line of code identifying the author, date, and purpose of the method. In addition, explain the difference between comments that consist of a double-slash (//) and those that have a starting and ending slash asterisk (/* .. */).
?
System.out.println("Hello Students");

What will be an ideal response?


Possible comments include:?// Written by // Written on /* The println method will output "Hello Students" */// - used for line comments/* - used for block comments */

Computer Science & Information Technology

You might also like to view...

We generally set a pointer variable to NULL

a. to signify that the pointer does not point to any memory b. to signify the end of a list c. because we want all our pointers to always point to NULL d. never e. A and B f. A and C

Computer Science & Information Technology

A marquee is also known as a ________

A) vector graphic B) vertex C) transparency D) selection net

Computer Science & Information Technology

Which of the following best describes a patent?

A. A word, name, symbol, or device that the individual intends to use commercially and wants to distinguish from as unique B. A company secret or sensitive information C. Discovery or invention that is protected by law and cannot be used by others D. A copyrighted artwork or music

Computer Science & Information Technology

In the context of viruses, what is a signature?

What will be an ideal response?

Computer Science & Information Technology