ちょっとした疑問なんですけど、
同じオブジェクト名のオブジェクトを2回作ると前に作った方はどうなるんでしょうか?
メモリ上に残ったままなのでしょうか?
class car {
  //---
}

class sample {
  public static void main(String args[]) {
    car car1;
    car1 = new car();
    car1 = new car();
  }
}