Problem of the Day
Wednesday, March 11, 2026
Problem:
In a Java program, comments written by the programmer
- may act as formal documentation for the code
- may result in more efficient compiling/execution of the code
- may help developers better understand the code
- I only
- I and II only
- I and III only
- I, II, and III
The correct answer is c. Multiline comments enclosed in /** .... */ create a JavaDoc note that provides formal documentation for the code. Other multiline comments enclosed in /* ... */ or single-line comments indicated with a // .... provide more informal documentation or information about the the code. All comments are ignored by the compiler however—they have no effect on the execution of the code.