I have a class name `Planet` and I am making objects in main.

```
Planet planet1 = new Planet("High Temperature","No Water);
Planet planet2 = new Planet("Low Temperature","Ice");

```

However, I saw my instructor doing this:

```
Planet planet1 = new Planet("High Temperature","No Water);
       planet1 = new Planet("Low Temperature","Ice");

```

So basically, my instructor is also creating two objects. I understand that a new object is basically formed when constructor is called but I always thought that the two objects need to have distinct names as well.

As you can see above, there are two objects created using the name `planet1`.

Also, is there any difference in creating two objects with the two different ways mentioned above.