Ask Question

What would be printed out as a result of the following code? System. out. println ("The quick brown fox" + "jumped over the / n" "slow moving hen.");

+3
Answers (2)
  1. 24 December, 11:36
    0
    It throws an error

    Explanation:

    The expected output is

    The quick brown fox jumped over the

    slow moving hen

    But right after the quotation mark following / n, there should be a + character that will concatenate the words together, without it the program throws an error and terminates. Adding the '+' character solves the issue and the bolded output above is displayed.
  2. 24 December, 11:49
    0
    Nothing

    Explanation:

    The line of code is erroneous and as a result there wont be any printer output.

    The program didnt follow the right algorithm required to write a good program, it is full of error and it is incorrect.

    The likely result of the program or the only result will be to print nothing.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What would be printed out as a result of the following code? System. out. println ("The quick brown fox" + "jumped over the / n" "slow ...” 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