+ 3

Which is better C++ or Java ???

18th May 2018, 4:12 PM
Oleg Shevchuk
Oleg Shevchuk - avatar
2 Respuestas
+ 7
It depends on what you want to use it for. C++ is best at game development, but Java is best at android. It really depends.
18th May 2018, 4:36 PM
Jax
Jax - avatar
0
You lack in mentioning any metrics you want to say that Java is better than C++. Lets take a few. Speed: C++ is way faster in all aspects though people have been able to show a single function or two can be made to run faster from Java with some JVM tricks. But then you have to deal with GarbageCollector which will kill any performance gain you could ever imagine getting. I also have my doubts on this result anyway. Memory usage: C++ uses way less memory because it runs native on the system instead of starting a whole bunch of processess like Garbage Collector and Virtual Machine among others. Coding : Java is based off on C++, so the code will be quite similar. C++ has pointers, and that is a cool thing, even if you almost never use the heap space and always stay in the stack. Java has tricks to achieve similar results but they will never be as fast or easy. I was a huge fan of Java when it came and just loved what it promised. It did not deliver. It really can't run everywhere all of the time. You always need something. It is really slow, though it is quite good on the server side as a service and compared to PHP it is way faster. But write the same thing in C++ and the rest is history. you can see here 'why java is best to learn': http://crbtech.in/Java-Training/benefits-learning-java/
23rd May 2018, 9:01 AM
pranit patil
pranit patil - avatar