5
AssignmentMultiple Choice

Project: Using Switch-Case and Nested If Statements

Question 5 • ASC Programming, Games, Apps and Society

What is the difference between the use of ; and the use of { in Java programs?

Answer
A
The semicolon (;) begins statements, and the curly bracket ( { ) ends statements.
B
The semicolon (;) ends statements, and the curly bracket ( { ) begins code blocks.
C
The semicolon (;) adds data to statements, and the curly bracket ( { ) omits data from statements.
D
The semicolon (;) ends code blocks, and the curly bracket ( { ) ends statements.
Previous
Next
What is the difference between the use of ; and…