JavaRanch Home
 
Front Page FAQs Ranchers Categories Recent Changes To Do Upload

Null Pointer Exception   



The only visible pointer in what's officially a language without pointers, the NullPointerException can lead to much frustration.

NullPointerException is similar to a core dump in C++. It basically refers to a situation where the program expected some object to be present but could not find it.

In other words, the calling object expects the called object to be there, but is suddenly surprised to find that the called object has ditched the calling object and has vanished!

This normally happens due to bad programming/design/programmer's carelessness. Typically beginners (even experienced ones for that matter) tend to make this mistake by not initializing objects properly or not taking care of objects properly, mostly because of the liberty GarbageCollection? gives them, thereby giving Java a bad name.

- SathyaSrinivasan (9 Nov 2004).



worst fellow- LayneLund (12 February 2004)

Front Page FAQs Ranchers Categories Recent Changes To Do Upload
Last Edited: 19 November 2007 What's Changed?
 
Copyright © 1998-2008 Paul Wheaton | Home | About Us | Privacy | Register