A syntax error is an error in the source code of a program.
A Syntax Error is one that occurs in the syntax sequence of a particular program that is intended to be written in a certain computer language. Most commonly, Syntax Errors are caused by misspellings or bad punctuation. This is commonplace when a program tries to translate itself from one platform to another.
For example, declaring a variable to be an integer and assigning a double value to it may produce a syntax error. In computer science, a syntax error is an error in the syntax of a sequence of characters or tokens that is intended to be written in compile-time. A program will not compile until all syntax errors are corrected. A syntax error may also occur when an invalid equation is entered into a calculator. Also a syntax error in this particular question is declaring the array to be a final int an later assigning a double value to it. So therefore the code contain a syntax error and will not compile, util the values assigned to the array index is also an integer ( i.e. int values)
The output streams to this question is "output.print(message)".
Explanation:
The description of the following can be given as:
In the given question it is define a string datatype variable that is "message".
Then we create a reference variable of PrintWriter class that is "output" and call string type variable that is message by the use of the print function we print message.