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
Зарегистрируйся сейчас
или Подпишись на будущие тесты