Computer Applications
Which of the following might make the Java compiler report a syntax error in a particular line of a program?
- The program is typed in the wrong font.
- The line contains a comma (,) instead of a dot (.).
- It is caused by Java runtime.
- Program takes too long to compile.
Input in Java
7 Likes
Answer
The line contains a comma (,) instead of a dot (.).
Answered By
1 Like
Related Questions
A programmer wrote the following statement:
netPay = grossPay + providentFund;instead of:netPay = grossPay - providentFund;Assuming all the unseen code is correct, what kind of error is it?Which of the following statement is true for logical errors?
Which keyword do you use to include a class in your program?
Which of the following is not a valid method of the Scanner class?