Quote (pzold @ 16 Dec 2018 16:36)
Also, whener the new keyword is used, we are talking about reference. So, for example:
Foo foo = new Foo();
You are assigning new reference to foo object.
Creating a new Foo object is not really a great example to use.
References are hidden from sight in Java, and the only time you have to think about the notion of a "reference" is when assigning an already existing object to a new variable.