Computer Science, asked by umasankar0417, 9 months ago

How many strings are eligible to be
garbage collected after the execution of
line 2 and line 4?
public class TestClass
public static void main(String argol)
String stro = null;
String str1 = new String("some string");
String str2 = new String('second
string");
String str3 = new String("Third string");
str0 = str1; //1
str1 = null; //2
str2 = stro; //3
str3 = str2; 1/4
*​

Answers

Answered by mandalsowhardya20118
4

Answer:

rgggg. I will not be able the next couple of weeks to the

Answered by pasmulwarsuresh
0

Answer:

soryyyyyyyyyyyyyyyy

Explanation:

I don't no this...

Similar questions