Which three compile without error?

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’);



Leave a Reply 0

Your email address will not be published. Required fields are marked *