Car car = new Car(22000,"silver");
WeakReference<Car> weakCar = new WeakReference<Car>(car);
car = null;
System.gc();
when the above code is gc, weakCar.get () returns null, indicating that the Car object has been recycled, but the question is, when will the weakCar object be recycled? Isn"t it a bit wasteful to recycle a car object and new another weakCar object?