What makes C++ better than Java?

0 110 Views | Posted 7 years ago

  • 5 Answers

    Sort by Upvotes
  • A

    Answered by

    Ashmeet Singh

    6 years ago
    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
  • Shiksha Ask & Answer

    Answered by

    VISHNU AGARWAL | Contributor-Level 10

    6 years ago
    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
  • R

    Answered by

    Rahil khan

    6 years ago
    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
  • Shiksha Ask & Answer

    Answered by

    NITIN DESHMUKH Yard by yard its hard, but inch by inch its | Scholar-Level 17

    6 years ago
    C+ 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
  • Shiksha Ask & Answer

    Answered by

    Harsh Ranjan College Selection Expert | Scholar-Level 17

    6 years ago
    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

Get authentic answers from experts, students and alumni that you won't find anywhere else

Sign Up on Shiksha

On Shiksha, get access to

  • 63k Colleges
  • 963 Exams
  • 610k Reviews
  • -50000 Answers

Learn more about...

Share Your College Life Experience

Didn't find the answer you were looking for?

Search from Shiksha's 1 lakh+ Topics

or

Ask Current Students, Alumni & our Experts

×
×

This website uses Cookies and related technologies for the site to function correctly and securely, improve & personalise your browsing experience, analyse traffic, and support our marketing efforts and serve the Core Purpose. By continuing to browse the site, you agree to Privacy Policy and Cookie Policy.

Need guidance on career and education? Ask our experts

Characters 0/140

The Answer must contain atleast 20 characters.

Add more details

Characters 0/300

The Answer must contain atleast 20 characters.

Keep it short & simple. Type complete word. Avoid abusive language. Next

Your Question

Edit

Add relevant tags to get quick responses. Cancel Post