Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

java or c++?

Hey guys. I am having a hard time deciding on wich language to stick with. I know the basics of both, but i would like to choose one of them to really get into. I would eventually like to learn both of course. Any personal experience/info would be great. Thanks.

8 Answers

Relevance
  • Anonymous
    2 decades ago
    Favorite Answer

    --C++ is a powerful all purposes programming language,since you have all the tools to mess with the deepest byte in your computer(memory).You can program in C++ stuff that you will never see,I mean low level programming.Also you may write high level programs,User Interfaces,games,etc..but you can not port them into another platform.If you write something in C++ under a x86 computer under windows,you can only use this program under windows. Java in this point is ahead,because with java you may write a small game under your windows and you will be able to port it into linux,unix,freeBSD,Solaris,any other platform, and even into your MOBILE PHONE!, while C++ is platform dependent.

    --Java is more "superficial" and generally is used for robust enterprise applications linked with networking and web based systems,is more focused into the "FUTURE" and that is that something that you write in java,will be supported to run in your browser,awesome.

    -NOW ,we have the third language, C# ,definitively is the easiest and you escape from all that complexity of C++ memory managment and those memory instructions,as well as it is .NET that is somehow considered as the future platform,in the future a computer,a tv,a microwave,a car, will be ruled by the .NET platform,(microsoft argues that).BUT nowdays JAVA rules that,specially for enterprise applications.

    If what you want is to learn ,you better start with C#,once that you get all the basis,you may mess with the complexity of C++ or with the almost cloned from language JAVA,

    EVOLUTION

    C++------->JAVA------->C#

    COmplexity

    C#------>JAVA-----C++

    portability(nowdays)

    C++------->C#------->JAVA.

    My Job is programming and honestly I recommend you C# as for beginner,you won't regreat it.

    Hope it helps.

  • Qyn
    Lv 5
    2 decades ago

    Java is a good language to learn in the beginiing. C++ is more complex and would be a good language to learn later on. Java is portable, C++ is not very portable. Java is also easier to learn then C++.

    All the languages have libraries that come with with them. Some have third party libraries. THe Java library is more complete then the C++ library.

    The Java library is called the KFC and the C++ library is called the SLT.

    If you like to get into the details of processing, C++ is faster the Java becasue it is a native of the computer. Java is the processed language. It uses the bytecode interpreter to run on the native processor.

  • 2 decades ago

    Well okay first you should understand a few things... I shall talk a bit about C++.

    Good points:

    1. One of the most highily used programming langauges when it comes to creating really complex or big applications

    2. It is very fast!

    3. You can do a LOT with it, it has lots of libraries to pick from and use to create application.

    4. You have the choice to make it object oriented or not

    5. It has all the power of C

    6. It is the main language used for creating high end video games

    7. If you learn C++ it will make it a lot easier to learn other programming langauges, considering most langauges either came or borrowed from C++

    8. More options, more possiblities

    Bad points:

    1. Its considered to be one of the most complex languages to learn, so the learning curve may be high for most

    2. its not very portiable, windows programs really only work on windows

    3. Even though there are free C++ compilers, the offical one is not free

    4. GUI development is difficult

    5. Debugging can be a pain

    6. You have to use pointers

    Now lets move on to Java

    Good points:

    1. It is completely object oriented

    2. Some of its syntax was borrowed form C, so it may be easier to learn it if you already know C/C++

    3. MUCH easier to program in then C++

    4. Java was originally meant for the web, so you have the ability to create web based applications

    5. Able to create GUI applications easier

    6. Networking can be done in Java with ease

    7. It VERY portiable, it can be used on any OS

    8. Allows you to create applications quicker

    9. Doesn't use pointers

    Bad points:

    1. It is completely objected oriented, meaning making simplier applications may look overly complex and take longer to do

    2. If you don't have the java enviorment installed on your computer, you can not run java based programs

    3. Its not as powerful or fast as C++

    So really as you can see each one has its ups and downs.. but really if you want to just get to the basic facts of it all.. then look at it this way. If you want to make applications fast and easy then go with Java, if you want fast and powerful programs then use C++. If you want my opinion I say learn both :-) becuase if you have already learned C++ then really Java is just the next step! It would be wise to know both, because that way you have more options open to you. And trust me if you know C++ it will be easy to learn Java, a lot of the same concepts are applied to both of them. So go with both, you will be thankful you did in the end :-)

  • Anonymous
    2 decades ago

    For something that will look good on a resume, and possibly get you hired, especially here in the United States, either...

    1) Not C++ but C# (pronounced C-sharp) and the .NET framework.

    2) For Java, if you want to focus on the business side of things then that means server-side Java, and you'll need to learn the whole suite of applications developers rely on for Java development in order to be competitive. JUnit, Ant, Struts, JSP, Tomcat, Enterprise JavaBeans, etc. And you may want to have at least a passing familiarity with one of the Java IDE's (Eclipse, NetBeans, Borland JBuilder). I'm sure I'm leaving something out.

  • How do you think about the answers? You can sign in to vote the answer.
  • Anonymous
    2 decades ago

    See C++ is for learning purpose now a days.

    But most programming is being done in Java. Because it has more good reasons to work.

    Visual C is also used for some game engines.

  • 2 decades ago

    I'd say learn C++ since Java's scope is somewhat limited. Either way, though, it's relatively trivial to learn one once you've learned the other. They have nearly identical syntax and much of the same control structures.

  • 2 decades ago

    Depends on what you want. If you want more of a web based thing, go with Java. If you want a really good challenge hit the book for C++.

  • 2 decades ago

    C++. Java won't get much done. :-) I'm a little bias.

Still have questions? Get your answers by asking now.