Solved

Which of the Following Statements Will Create a Reference, Str

Question 13

Multiple Choice

Which of the following statements will create a reference, str, to the string, "Hello, world"?
(1) String str = new String("Hello, world") ;
(2) String str = "Hello, world";


A) 1
B) 2
C) 1 and 2
D) neither 1 or 2

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions