Are null and "" the same thing? I thought they were but now I am wondering.
Author and all-around good cowpoke
posted 16 years ago
They most certainly are NOT the same thing. null is a special literal value used to indicate an un-initialized reference. Instance variables are initialized to null. If you try to perform an operation on an object reference that has the null value you get a NullPointerException. "" is a String object that has zero characters it it. Bill