67.2k views
3 votes
As you are editing code, you notice the lack of semicolons. Why is this important to note?

All programming statements in Java must end with a semicolon.
All class statements in Java must end with a semicolon.
All public statements in Java must end with a semicolon.
All comments in Java must end with a semicolon.

User Krupa
by
7.5k points

2 Answers

5 votes

Answer:

All programming statements in Java must end with a semicolon.

Step-by-step explanation:

Semicolon allows the compiler to know where to end the instructions.

User Poosliver
by
8.5k points
6 votes
It's the first one :)
User Donnett
by
8.9k points