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...

No global variables It's a bit disingenuous for programmers to complain about the lack of global variables in Java because they're also quite willing to grouse about the dangers of global variables in other languages like PHP. Still, we're forced to jump through some strange hoops to do much of what global variables will give us. Some people create a Global class and fill it with static variables. Others build singleton objects complete with a getting routine that will always return the one object. This might be tolerable if creating singleton objects weren't so fraught with race conditions and issues about efficiency.

Prev Next 11/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?