What happens as a result of attempts to compile and run the program?

class Quizful {
   public static void main(String[] args) {
        String a = "\u000a";
        String d = "\u000d";
        System.out.print(a + " " + d); 
    } 
}
Explanation
\u000a is a newline symbol in java source code.
\u000d is a carriage return symbol in a java source code.
That is how the compiler treats these characters. It's not possible to include them in a string.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback