Ask Question
29 April, 14:03

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. 29 April, 14:18
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers