One of the many reasons why I develop in Java
Research finds Java code most secure
From www.itweek.co.uk :
New research from software security specialist Fortify reveals that bugs are far less common in Java compared with commercial C/C++ code
Dave Bailey, IT Week, 05 Mar 2007
Application code security specialist Fortify Software will today unveil research from its Java Open Review (JOR) showing that there are "significantly fewer bugs in open-source Java components than in commercial C/C++ programs". Fortify founder Roger Thornton said that the difference was "an order of magnitude fewer".
This is in fact one of the main reasons, I switched from using C/C++ (used it for more than 10 years) in 1995 to Java.
Having to think about memory management, dangling pointers, uninitialized variables distracts you from what you try to achieve.
Also one of the nice things in Java was that everything is what it seems (no preprocessor).
Peter