✏️ Explanatory Question
Write the output for the following:
System.out.println("Incredible"+"\n"+"world");
Write the output for the following:
System.out.println("Incredible"+"\n"+"world");
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.