Question: String s 1 = Hello world; String s 2 = s 1 ; Identify the true statements about the code above. Select ALL that apply.

String s1= "Hello world";
String s2= s1;
Identify the true statements about the code above. Select ALL that apply.
Question 2 options:
The s1 variable holds the string "Hello world".
The s2 variable holds the string "Hello world".
The s1 variable holds a reference to the string "Hello world".
The s2 variable holds a reference to the string "Hello world".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!