It is not.
You have to concatenate them :(
// btw it shold be String with upper case
String query = "select a, b\n"+
" c,d \n"+
" from sometable";
I use SQuirreL SQL client which has this "scape/unscape" feature that put's the string concatenation and removes it for you.
From the description:
SQL Entry Area Enhancements Plugin by Gerd Wagner
Installer Category: Standard
This plugin provides adding and removing Java quoting around SQL and formatting of SQL in the SQL editor.
So the next time you have to test that query, you copy from the IDE/editor and paste it into SQuirreL and do right click "Remove quotes" and it will leave you:
String query = select a,b
c,d
from table
When you're done with your query you do the inverse, right click and select "quote query" and it will add the string quotes + and \n needed, leaving you ready to paste it back into your source code.