This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 44562
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: 11882

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!