Translate escapes

Report a typo

What will be the output of the program below?

String textBlock = """
    Hello\\sWord\\n!
    Hello Java\\s!""";

System.out.println(textBlock.translateEscapes());

a)

Hello\sWord\n!
Hello Java\s!

b)

Hello Word !
Hello Java !

c)

Hello Word
!
Hello Java !

d)

Hello Word !Hello Java !
Select one option from the list
___

Create a free account to access the full topic