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