First, Apple isn't removing Java from OS X. They will stop shipping their customized version of Java in several years.
Second, every popular piece of software has vulnerabilities. So if this warrants the removal of Java, you should remove Safari and the BSD kernel from OS X as well.