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 (;)
Answer:
D. A semicolon (;)
Explanation:
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.
Free Spring Boot Tutorial - 5 Hours Full Course
Watch this course on YouTube at Spring Boot Tutorial | Fee 5 Hours Full Course