Re: Passing Null from the constructor
Wednesday, March 15, 2006 06:21 PM
A constructor does not return anything. It creates the object. It cannot return null. Assuming you talk about the constructor of Vector, do you want to create a Vector v = new Vector(null)??? That will throw a NPE (NullPointerException)...