Why cant java be used over C++ for all programming purposes
<p>It is said that Java overcomes all disadvantages of C++</p>

<blockquote>
  <p><strong>Disadvantages of C++:</strong></p>
  
  <ul>
  <li>Does not provide very strong type-checking. c++ code is  easily
  prone to errors related to data types,
  their  conversions, for example, while
  passing arguments to  functions.</li>
  <li>Does not provide efficient means for garbage collection,  as already
  mentioned.</li>
  <li>No built in support for threads.</li>
  <li>Gets complex when u want to develop a graphics rich  application in c++</li>
  <li>portability of code on various platforms, etc</li>
  </ul>
</blockquote>

<p>Then why is there a need for C++ language ??  Why cant we just use Java for all programming purposes??</p>
