148k views
4 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

2 Answers

3 votes
I think binary code is an example of it.
User Unistudent
by
4.7k points
4 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 Raman Raman
by
4.3k points