
what is the difference between instance and object

Instance refers to the copy of the object at a particular time whereas object refers to the memory address of the class.
Object - When there is an value.
int[] arr={1,2,3};
Instance - when there is a declaration for class with 'new'.
String arr=new String("test");
A obj2 = new A(); //this is the object instance with occupy memory for this.