Solved

Which of the Following Statements Will Create a Reference,str,to the String,"Hello,world

Question 42

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