The difference between Python and Java is that the following (Python):
text = """hello
world"""
will contain the intendation before world, while in Java: String text = """hello
world"""
will be equivalent to "hello\nworld".