- 1
Which language is better c++ or java?
14 Answers
+ 4
Alright, most people forget in what language many of the JVMs and operating systems are written. I agree every day stuff is not written in C/C++ (too expensive). Important software is (indirect quote of Bjarne Stroustrup, the creator of C++). If you need performance, and there are quite some domains that need performance, you don't go interpreter or dynamically typed languages as they do not and in part cannot perform at the same level as highly optimized, compiled languages. Thus, C++ shines in applications as games, robotics or real-time trading. Even assembler is still in use today. You would be surprised how much is done in assembler in aircraft control systems...
So please open your mind to more applications than just the Web. Computing is so pervasive and has such a wide range of applications that other languages have their domain in which they perform best.
+ 3
it depends what you want to do, and what you know to make with them.
+ 2
c++
0
it depends bro...mostly Java s a bttr version of c++....
0
@Ganesh: So I assume, you are more acquainted with Java? If so, please be aware that this often leads to a bias. Also, C++03 that is taught here @ SoloLearn C++ cannot be compared to Java that is more modern than J2SE 1.4 from 2002. Just keep that in mind when you assess.
0
Java is much better and contains the biggest developer community and majority of technology will consist if Java code e.g. Androids, ATMs, Linux, Solaris OS... So learn Java will allow you to use it many sectors in the technology industries
0
It depends on which operating system you intend to run the program on. If you want to run your program exclusively on Windows then c++ would be better as it was written with the Windows operating system in mind. C++ programs are a pain to get working on Linux and Mac OS X.
Java is used when the program you write needs to be run on all kinds of operating systems.
For example if you're writing a sever side program for a Windows server you would use c++ because c++ is faster on Windows and there's no need for support on other operating systems. If you're writing a video game you would use java so players on Windows, Mac and Linux can play it instead of just players on windows
0
Basically java is mostly WORA (write once run anywhere) as its JVM turn bytecode in machine code which is the reason why its slow but java is really good language for cross platform.
0
it's very clear c++ is better!!
0
@Matt: I'm sorry, but that's wrong. There are great (actually better than Visual Studio) C++ compilers and build systems on Linux and Mac OS. If there are problems making code run on other platforms than Windows, most likely the code contains Windows-specific parts and is therefore not standard conformant.
0
Java is probably best, as majority of technological device are starting to consist of Java code
0
c++ is better because it doesn't use dependencies to run and its much faster. java depends on jvm. if you dont have java installed on your pc, java programs will never run.
java has its advantages over c++ too. where its wite once and run anywhere.
prepare to say good bye to java if oracle.com no longer works.
0
c++ is better
0
c++ better than Java...šš