2 ms·
Eh, still kinda murky. How about value Point a = new Point(10, 10); value Point b copy= a; a.x uniq= 100; System.out.println(b.x); Now it's mu
by Joker_vD 4mo ago
Eh, still kinda murky. How about
value Point a = new Point(10, 10);
value Point b copy= a;
a.x uniq= 100;
System.out.println(b.x);
Now it's much more obvious that cloning/copying takes place, and mutating a field won't affect fields of any other objects.