C++ vs Java

Ada banyak artikel di internet tentang perbandingan kecepatan C++ dengan Java. Hasilnya sangat beragam. Ada yang bilang C++ lebih cepat, ada yang bilang Java lebih cepat. Yang mana yang lebih cepat sesungguhnya tidak ada yang tahu, tetapi karena memang banyak faktor yang bisa mempengaruhi kecepatan eksekusi suatu program. Tetapi karena aku adalah "a man of C++", aku cenderung beranggapan "C++ is the best". Jadi menurutku PASTI C++ lebih cepat!!! (from a biased opinion of mine :D). Beberapa alasannya dapat dilihat pada link di bawah:

http://www.jelovic.com/articles/why_java_is_slow.htm

Akhir kata, suatu kutipan yang diambil dari link di atas:

"Java is high performance. By high performance we mean adequate. By adequate we mean slow" -  Mr. Bunny

One Response to “C++ vs Java”

  1. Firstiar Says:

    well … according to my experiences, C++ still faster from java … (with the proper design and code efficiency of course). Because java have to interpret the compiled *.class to machine language. And of course, with all support system like garbage collection and else which make it slower when that system is working.

    But for some C++ users, when they develop using the brute style, let say it’s like spaghetti code, C++ somehow tend to be slower than java. Why? because C++ left the memory management up to the developer. If the developer didn’t careful enough, they would create memory leaks, accessing null pointer, etc.

    well … this is only my opinion. I’m java developer, by the way :)

Leave a Reply