Essential Classes Java Book

public class Main {
public static void main(String[] argv){
String s = "line 1
line 2
";
}
}
If you try to comiple this program, the compiler will generate the following error message.
D:\>javac Main.java
Main.java:3: unclosed string literal
String s = "line 1
^
Main.java:4: not a statement
line 2
^
Main.java:4: ';' expected
line 2
^
Main.java:5: unclosed string literal
";
^
4 errors
In Java strings are actually object types.