Answers for "string "](""

0

String

/*
*NOTICE: the 2 variables refer to one place in memory no 2 different, 
because both of them have the same value.
*/
String str1 = "Hello";
String str2 = "Hello";
/* if I changed value of each one will not share the common place. */
String str2 = "HELLO";
/* Now, both of them has different place in memory */
Posted by: Guest on January-30-2022

Code answers related to "string "](""

Browse Popular Code Answers by Language