
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.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.