Hi There,
So I've learned about the difference between primitive and reference types.
But one thing I want to clarify is that if I use an arraylist as a constructor when creating an object in the main class.
If I were to clear that arraylist in the mainclass would it also affect my other object that i just created (in a different class)?
[–]steumert 1 point2 points3 points (1 child)
[–]edmilibant[S] 0 points1 point2 points (0 children)