+ 7
Which is better Java or C++?
14 odpowiedzi
+ 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+
+ 24
Overall java is better compared to c++
+ 13
depends on what you need, every language is the best in field where it is used...
+ 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.
+ 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++
+ 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.
+ 3
which is more in demand
+ 3
okk...Thanks...I also started learning Java
+ 2
can you explain more how
+ 2
All lanuage are best.....just depend u what u like more...i like java bcz i interested in java
+ 2
Java is used in android apps, while C++ is used in video games.
+ 2
thanks 😊😊
+ 1
java