Single-Line Comment
A comment beginning with // and continuing to the end of the line.
What is Single-Line Comment in Java?
Single-Line Comment — A comment beginning with // and continuing to the end of the line.
class GuestList {
// The venue has four reserved seats.
int reservedSeats = 4;
}
Level: Novice · More Java terms at this level
Updated