e.g. a language that automatically does array bounds checks, whether the programmer asks for them or not.
Such a system would protect against managers and bosses' demands as well as against lazy and security-incompetent programmers.
However, I don't think anybody could seriously say that Java is totally "secure." There are plenty of security-related things that could go wrong (e.g. a man-in-the-middle attack) that Java can't handle unless the developer takes steps to prevent them. By definition, that isn't "by default."
If you want to prevent security problems "by default", you're going to need to specify each problem you want handled, and you're going to need to recognize that there are a lot of security problems that a language or OS simply can't stop by themselves.