String Literal2844 - Java Quiz Question


Which of the following initialization is incorrect?


A
String str = "Java "
+ "Learning "
+ "School";
B
String str = "Java
Learning
School";
C
String result = "0.01";
D
String result = "0.01" + "Hai";