File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes null pointer exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

null pointer exception

Ranch Hand

Joined: Apr 04, 2007
Posts: 188
can anyone explain with a complete simple program.....simple program please...

and if possible tell me all possible reasons.........pls pls
Joanne Neal

Joined: Aug 05, 2005
Posts: 3742
You're already asking about NPEs here. Don't start a new topic.

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45277
As Joanne and Paul have already told you, please stick to one thread per topic.

And all the possible reasons? The screen isn't big enough to fit them all in
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11918

Please don't keep starting new threads for the same topic. I'm closing this one. See the thread Joanne refers to for any additional followups.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I agree. Here's the link:
subject: null pointer exception
It's not a secret anymore!