Ask Question
6 May, 22:08

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. 7 May, 00:03
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers