What exactly is an instance in Java?
An object and an instance are the same thing. Personally I prefer to use the word “instance” when referring to a specific object of a specific type, for example “an instance of type Foo”. But when talking about objects in general I would say “objects” rather than “instances”. A reference either refers to a specific … Read more