Java OCA OCP Practice Question 70

Question

What is the correct character for terminating a statement in Java?

  • A. A colon (:)
  • B. An end-of-line character
  • C. A tab character
  • D. A semicolon (;)


D.

Note

Unlike with some other programming languages, the proper way to terminate a line of code is with a semicolon (;), making D the only correct answer.




PreviousNext

Related