What makes C++ better than Java?
-
Firstly, I'd be cautious to make a claim that C++ is better than Java. There are pros and cons to both sides.
C++ is basically more power to the programmer (since one can break past all sorts of abstractions), and runs natively instead of on a virtual environment (and hence is also platform dependent). A C++ application can manage its own memory in more finer ways than a Java app can. In C++, one can overload operators, access physical addresses and override values there. One can throw and catch any type (.) and do some nasty stuff around all that. On the other hand, in Java, one can sit back and basically just deal with OO abstractions...more -
C+ is basically more power to the programmer (since one can break past all sorts of abstractions), and runs natively instead of on a virtual environment (and hence is also platform dependent). A C+ application can manage its own memory in more finer ways than a Java app can. In C+, one can overload operators, access physical addresses and override values there. One can throw and catch any type and do some nasty stuff around all that. On the other hand, in Java, one can sit back and basically just deal with OO abstractions and code them up in one-way, regardless of the underlying platform. Fine-grained memory management is harder. One c...more
-
I won't say that one is better than another, both have their own benefits both perform different tasks.C+ is more System oriented programming where as Java is more web (server oriented programming).
1.You have to consider this fact that Java is not just a language, its also a VM. Various other technologies like RoR,Scala use JVM. Android is also one form of Java.
C+ is simply a language.
2.Java doesn't deal with pointers, so less headache for programmers.
C+ have pointers which are inherently complex and troublesome.
3.You can not create virus with Java. That's a plus. Future languages will not support virus creation as well.
You can create...more -
Answered by
NITIN DESHMUKH Yard by yard its hard, but inch by inch its | Scholar-Level 17
6 years agoC+ is basically more powerful to the programmer, and runs natively instead of on a virtual environment, and hence is also platform dependent. A C+ application can manage its own memory in finer ways than a Java app can. In C+, one can overload operators, access physical addresses and override values there. One can throw and catch any type and do some nasty stuff around all that. On the other hand, in Java, one can sit back and basically just deal with Object Oriented abstractions and code them up in one-way, regardless of the underlying platform. Fine-grained memory management is harder. One can play around with GC programm for optimiz...more -
C+ and Java both are computer programming languages. A program with C+ language is quite faster than Java program and work faster. A C+ language program can better manage its memory and cache file as compared to Java program. Java program may harm the inbuilt software and in C+ language has less chance to happen these things. C+ written codes can easily fit with the hardware devices. C+ is designed for high level devices, system and application programming but Java is designed for general purpose, class-based program, feature phone, and object-oriented programming. C+ runs with native executable machine codes for the target instruction...more
Taking an Exam? Selecting a College?
Get authentic answers from experts, students and alumni that you won't find anywhere else
Sign Up on ShikshaOn Shiksha, get access to
- 63k Colleges
- 963 Exams
- 610k Reviews
- -50000 Answers