> This is not true. C++ beats Java performance in constrained environments
Every environment is constrained. Devs just got lazy and scaling now means buying more machines instead of performance optimisation.
> You see some really fast Java database
That eat up way to much memory for little.
When you see popular java based os , tell me.
This is not true. C++ beats Java performance in constrained environments. On servers the situation is not so clear-cut. You see some really fast Java databases.
And BTW, Java is better at inlining functions than C++, but C++ handily beats Java when it comes to controlling memory layout (though that, too, is changing).