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:

Verified
Correct Answer:
Verified
Related Questions
Q24: This refers to the combining of data
Q25: In UML diagrams, this symbol indicates that
Q28: In your textbook the general layout of
Q28: A constructor is a method that is
Q41: A method that gets a value from
Q46: When an object is created, the attributes
Q46: For the following code,which statement is not
Q48: Instance methods do not have the key
Q55: Data hiding, which means that critical data
Q57: A constructor:<br>A) always accepts two arguments<br>B) has