Creating two objects in main using same name in Java : 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. 