What does the below statements infer? let s1 = String::from("example"); let s2 = s1;

Question:What does the below statements infer? let s1 = String::from("example"); let s2 = s1;

1.a copy of the value in s1 is binded to s2

2.copy the data on the heap that the pointer in string refers to

3.copy the pointer, the length, and the capacity that are on the stack.

4.copy the data on the string pool that the pointer in string refers to


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!