AP® Computer Science A glossary
Comment
Course: AP® Computer Science A Shows up in: Unit 1: Using Objects and Methods
Text in code written for programmers and ignored by the compiler. Java has //, /* */ and /** */ comments.
Appears in the course and exam description (CED): 1.8.A.1
// starts a one-line comment, /* */ encloses a block, and /** */ marks a Javadoc comment. Comments are not executed.
int points = 40; // points before this round
// points = 0; this line never runs
System.out.println(points);
Output:
40 Learn it properly, with a checkpoint 1.8 Documentation with Comments