Comment
noun
say it: “KOM-ent” /ˈkɑmɛnt/
Notes written in code for the people who read it; Java ignores them when it runs the program.
What is Comment in Java?
Comment — Text for people reading the code that the compiler ignores.
class GuestList {
// The venue has four reserved seats.
int reservedSeats = 4;
}
In a sentence
- “I left a comment above the formula explaining why we round the tax down.”
Level: Novice · More Java terms at this level
Updated