Hi, I need clarification about why these two scenarios produce different type of results.
When you have something like:
y=3, not 7.
However, when you have something like this:
a.size =20, not 10.
What causes this difference? I'm guessing it has to do something with the difference in primitive variables and object reference variables, but I'm not entirely sure. I'm new to both
Java and programming in general, so can someone explain this to me? Thanks.