✏️ Explanatory Question

Write the output for the following:

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

👁 63 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

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.