Ask Question
3 September, 05:04

Which of the following cannot cause a syntax error to be reported by the Java compiler? Question 12 options: A) Missing * / in a comment that begins with / * B) An extra blank line. C) Missing; D) Mismatched {}

+2
Answers (1)
  1. 3 September, 05:36
    0
    B) An extra blank line

    Explanation:

    An extra blank line or the spaces between characters in a Java program is referred to as a white space. Java compiler Ignores these whitespaces as such an "extra blank line" without any writing will not result in a syntax error to be reported.

    for example all this are valid in java

    int a = 5;

    int a = 5; / / This is still valid, the empty space. same rule applies if there was just an empty blank line.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which of the following cannot cause a syntax error to be reported by the Java compiler? Question 12 options: A) Missing * / in a comment ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers