Java is a bad language to work in because it's not expressive, not because it protects programmers (which it doesn't).
Compared to C/C++, yes it does. Java protects you from out-of-bounds array access, uninitialized access, buffer overflows, use-after-free, double-free, etc etc.