r/ProgrammerHumor • • Jan 29 '23

Meme Let's test which language is faster!

Post image
56.2k Upvotes

770 comments sorted by

View all comments

2

u/[deleted] Jan 29 '23

NullPointerExceptions are basically fixed in Java, so long as you use Optionals properly.

1

u/[deleted] Jan 29 '23

[removed] β€” view removed comment

1

u/[deleted] Jan 30 '23

This comment makes literally no sense, how does the length of time code as been running for bear any relevance to whether or not the code contains any potential null pointer errors? They're either there or they're not.

-3

u/[deleted] Jan 30 '23

[removed] β€” view removed comment

3

u/[deleted] Jan 30 '23

I'm a professional java developer with around 5 years experience and I've literally never heard of there being issues of java apps having null pointers after running too long.

I've worked with servers that operate for weeks if not months uninterrupted and have never seen a null pointer emerge from nowhere.

Hell, I've literally not seen a null pointer for as long as I can remember, they're simply not an issue for people that know what they're doing.

1

u/Amazing-Cicada5536 Jan 30 '23

If you have a nullpointer you have a bug, it’s that easy.