+ 7

Which is better Java or C++?

23rd Feb 2018, 3:47 PM
Abhishek Kumar Mishra
Abhishek Kumar Mishra - avatar
14 Answers
+ 27
C++ uses the only compiler whereas, in Java, compiler and interpreter both are used. C++ supports operator overloading and multiple inheritances but Java does not. C++ is more related to hardware in contrast to Java. C++ does not provide built-in support for internet whereas Java has built-in support for the same. However, C++ supports socket programming that can be used to achieve the same. C++ uses the concept of header files to include different libraries in the program. Java uses import functionality to include different classes and its methods in the program. C++ provides support for default arguments whereas Java does not. C++ has the concept of scope resolution operator( :: ) which is used to define a method external to the class, whereas Java uses single dot( . ) which can be used to qualify classes with the namespace they came from. Java does not use a go-to statement like C++. Java does not have destructors, therefore, exception handling mechanism and garbage collection are different from C+
18th May 2019, 3:18 PM
Rapt[#Demure]
Rapt[#Demure] - avatar
+ 24
Overall java is better compared to c++
18th May 2019, 3:19 PM
Rapt[#Demure]
Rapt[#Demure] - avatar
+ 13
depends on what you need, every language is the best in field where it is used...
23rd Feb 2018, 3:50 PM
Vukan
Vukan - avatar
+ 10
Every developer may have their specialty but should be versed in several languages and areas of development and be able to use them accordingly. But you will notice here and elsewhere that many choose one specific and thus loose out on projects.
23rd Feb 2018, 4:06 PM
BroFar
BroFar - avatar
+ 5
both languages have their own pros and cons. it depends on which platform and to what your are going to work. but i will choose java over c++
25th Feb 2018, 1:33 PM
RISHABH SARAF
RISHABH SARAF - avatar
+ 4
It’s a bit like comparing pears to apples, both are fruits but both have some very different characteristics. You usually pick a language that is more suitable to your goal.
23rd Feb 2018, 5:04 PM
Sergiu Panaite
Sergiu Panaite - avatar
+ 3
which is more in demand
23rd Feb 2018, 3:52 PM
Abhishek Kumar Mishra
Abhishek Kumar Mishra - avatar
+ 3
okk...Thanks...I also started learning Java
23rd Feb 2018, 3:54 PM
Abhishek Kumar Mishra
Abhishek Kumar Mishra - avatar
+ 2
can you explain more how
23rd Feb 2018, 3:48 PM
Abhishek Kumar Mishra
Abhishek Kumar Mishra - avatar
+ 2
All lanuage are best.....just depend u what u like more...i like java bcz i interested in java
23rd Feb 2018, 3:52 PM
Harsh Agrawal
Harsh Agrawal - avatar
+ 2
Java is used in android apps, while C++ is used in video games.
23rd Feb 2018, 4:01 PM
Jax
Jax - avatar
+ 2
thanks 😊😊
19th May 2019, 5:28 AM
Abhishek Kumar Mishra
Abhishek Kumar Mishra - avatar
+ 1
java
23rd Feb 2018, 3:47 PM
Abhi DG
Abhi DG - avatar