Which three compile without error? (Choose three.)
A.
String str = ‘Hello’;
B.
String str = “Hello”;
C.
String str = “Hello” – ” World!”;
D.
String str = new String(“Hello”);
E.
String str = “Hello” + ” World!”;
F.
String str = new String(‘Hello’);
Which three compile without error? (Choose three.)
Which three compile without error? (Choose three.)
A.
String str = ‘Hello’;
B.
String str = “Hello”;
C.
String str = “Hello” – ” World!”;
D.
String str = new String(“Hello”);
E.
String str = “Hello” + ” World!”;
F.
String str = new String(‘Hello’);