Predict the output icse 2018 computer applications question
System.out.println ("Incredible"+"\n"+"world");
adithya02:
It is incredble (nextline) word
Answers
Answered by
5
The Output is:
Incredible
world
Incredible
world
Answered by
5
HELLO THERE!
In Java, "\n" is the Escape sequence which is termed as New Line Feed. This means that when "\n" is encountered, the cursor skips to the next line.
Hence, the output of the above code is:
Incredible
world
#An ICSE student
#THANKS!
In Java, "\n" is the Escape sequence which is termed as New Line Feed. This means that when "\n" is encountered, the cursor skips to the next line.
Hence, the output of the above code is:
Incredible
world
#An ICSE student
#THANKS!
Similar questions