I am beginner at java, so I found something has made me confused: Why when we create something like below:
String name = "Abdelillah";
String editName = name;
editName = "Mohammed";
My question is why the editName doesn't change name object? But when we use arrays, if we create a reference to the first array, the second affect the first I need to know why please and thank you