Take a look at this Common Java Mistakes - Forgetting to initialize a variable.

Most NullPointExceptions happen because of this reason (I'd say maybe ~80% of the time, the rest is from output that...