So say I have some test java code like this:

```
class A(){
       int a = 0;
       public A{
             a = 1;
       }
 class B(){
       A object = new A(); //Object one
       A object = new A(); //Object two

```

My question is: In class A when I call the new operator on object twice what happens? Does it create a new object A and destroy the old one? Or will it error? Does it just reset the old object?

I have tried this a couple times and don't really understand the output.