Point points new Point3 This declares a variable called poi
Point[] points = new Point[3]; (This declares a variable called points that refers to an array of length 3 that stores reference to Point object. My question is what does reference look like in Java?
Solution
Basically a reference in Java is very similar to pointers in C language.
A Reference is what is used to describe the pointer to the memory location where the object resides. An object is an instance of class which is stored somewhere in the memory. The variable is used to access that memory location withing the application.
![Point[] points = new Point[3]; (This declares a variable called points that refers to an array of length 3 that stores reference to Point object. My question is Point[] points = new Point[3]; (This declares a variable called points that refers to an array of length 3 that stores reference to Point object. My question is](/WebImages/35/point-points-new-point3-this-declares-a-variable-called-poi-1103438-1761583509-0.webp)