Compile Time Checking for NullPointerException
807580Oct 28 2009 — edited Oct 29 2009I think Java should put a compile time checking for null pointer exception.
If an instance variable(object type) is declared but not assigned any value and it is private and then definitely the compiler should be able to flag an error or warning that an NullPointerException will be raised it any method is invoked on the object type instance variable.
It will help and save a lot of development effort since it will save the effort compile and running it once again to get the runtime NullPointerException.