How are line comments and block comments used?

What will be an ideal response?

A line comment is included as documentation to the programmer or a programmer that
might need to modify the code at some later date. A line comment is signified by //. Anything that
follows the // is considered a comment by the compiler until the end of the line is reached.
A block comment is included as documentation to users of the class. Users of the class are usually
other programmers. A block comment begins with /* and ends with */. A block comment my span
many lines. Any text between the beginning /* and the ending */ is part of the block comment. A
special block comment can be used with Javadoc, a documentation tool included in Java’s SDK, to
create documentation for users of the class.

Computer Science & Information Technology

You might also like to view...

Is creating a Read Replica of another Read Replica supported?

A. Only in VPC B. Yes C. Only in certain regions D. No

Computer Science & Information Technology

What is the default value of a reference?

a. 0. b. "". c. null. d. default.

Computer Science & Information Technology