KnowledgeBoat Logo

Output Questions for Class 10 ICSE Computer Applications

Write the output for the following:

System.out.println("Incredible"+"\n"+"world");

Java

Input in Java

ICSE 2018

25 Likes

Answer

Output of the above code is:

Incredible
world

\n is the escape sequence for newline so Incredible and world are printed on two different lines.

Answered By

14 Likes