In Pictures: 15 things we hate about Java

Slow startup times, null pointers, security flaws -- Java's ongoing success leaves plenty to complain about

In Pictures: 15 things we hate about Java prev next

Loading...

Endless checking for null pointers Is there anything to this complaint? Let me check if it's null before typing any more. Seems fine. Now let me check if my keyboard is still here and hasn't been replaced by something null. It's still here. Now I'll move my fingers and tell you why null testing is a pain.

Java requires endless if statements to test whether variables have ended up null; otherwise entire threads crash with NullPointerExceptions. Smartass developers say it's my fault for not checking the input at the beginning, but that's often not possible when creating libraries. If someone picks up this class file in the future, you better check all the variables yet again, because you have no idea how they will reuse it.

Prev Next 7/16

Comments on this image

Close

In Pictures: 15 things we hate about Java

16 images
Shopping.com

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?