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); 
\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.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Java
Зареєструйся Зараз
або Підпишись на майбутні тести