Well also every software can be slow and it's rather a matter of complexity of the implemented algorithm than about the code being executed. Of course in Java you could use a huge array and put both into it and that way avoid the ArrayIndexOutOfBoundsException (I.e., as I said above, you can translate the C++ bug to a similar bug in Java) but I doubt that you'd store sensitive data into the same array as some random echo message. In Java you would get an ArrayIndexOutOfBoundsException in that case instead of just revealing sensitive data to attackers.
But for example in C++ you can easily accidentally access memory that you didn't mean to access (see the famous Heartbleed Bug ).
You can probably translate every bug that you can have in C++ to Java and from Java to C++. You are saying it can be buggy which obviously holds true for every software: Every software can have bugs and the more features it has the more likely it will become that there also will be bugs.īut if you're implying that software written in Java can be more buggy than software written in C++ then that's just not true. Miracle is a Javascript Sega Master System emulator that runs totally inside your browser. What can be buggy and slow also high power consuming? Java?