98,277 views
23 votes
23 votes
One rule in the Java programming language is that you have to place a semicolon at the end of each statement. What is this rule an example of?

Group of answer choices

a database

a data structure

syntax

binary code

User Keith John Hutchison
by
2.9k points

2 Answers

16 votes
16 votes
I think binary code is an example of it.
User Lymari
by
3.4k points
20 votes
20 votes

Answer:

A data structure if I'm correct.

Step-by-step explanation:

The computer would need to know when one command is over, as you can write code like this,

ellipse(20, 20, 20, 20);fill(255, 0, 240);

and without the semicolon it would end up looking like this,

ellipse(20, 20, 20, 20)fill(255, 0, 240)

and the computer would not know when you've stopped creating the circle and when you've started to color it.

User Mustafa Aljaburi
by
3.7k points