Bifalgorithm post · Computer science one · Comments
How are comments written and processed in Java?
How are comments written and processed in Java? (Computer science one · Comments) — "Comments can be written in a Java program either as a single line using tw…
Ideas in this flowchart
- Comments in a Java program are ignored during execution.
- Java supports two comment formats.
- Single-line comments begin with two forward slashes: //comment.
- Everything after the two slashes on that line is ignored.
- Multiline comments begin with /* and end with */.
- Everything between /* and */ is ignored.
- Comments do not affect the final executable code.
- The amount of comments has no effect on the final executable code.