Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. C++ or java?

C++ or java?

Scheduled Pinned Locked Moved IT & Infrastructure
c++javaquestionlearning
5 Posts 5 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KZ_II
    wrote on last edited by
    #1

    I am new to programing, and i am not sure if I should learn C++ or java. Which is the better route to learning programing C++ or Java? Is one language more useful? Is c++ being replaced by java?

    D A K H 4 Replies Last reply
    0
    • K KZ_II

      I am new to programing, and i am not sure if I should learn C++ or java. Which is the better route to learning programing C++ or Java? Is one language more useful? Is c++ being replaced by java?

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      KZ_II wrote: Is c++ being replaced by java? Not at all. Both are OO languages with simlar syntax, bt there is big difference between C++ and Java. Java has garbage collection, C++ don't - to name one difference. Java produces bytecode, c++ is compiled to machine code. C++ is more efficient than Java, while Java is safer. Those to languages have different purposes and it's quite unfair to compare them. I am not expert in both Java and C++ so I'll leave this alone for now :) I suppose you to learn C# :) It's modern language, something like hybrid between Java and C++, trying to get the best from both (arguable). It is fairly simple language. (NOT arguable ;)). Bt it's powerful in the same time (especially C# 2.0). IMO good for beginners as well as for da programmers :) [my opinion] I am quite happy you didn't mention VisualBasic. In my opinion, you shouldn not even think about learning VB/VB.NET :) Yo VB programmers, vote me down for this, hate me, whatever :| [/my opinion] KZ_II wrote: Which is the better route to learning programing Well you maybe mean which from C++/Java, bt for learning programing, there is language designer for this purpose - Pascal. It's NOT a good language to learn OOP, bt it's very good start for learning basic programing constructs and algorithms and simply to get familiar with the way programmers think. Just my $.02 :) Answer your question is not as easy as I'd think :sigh: best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

      1 Reply Last reply
      0
      • K KZ_II

        I am new to programing, and i am not sure if I should learn C++ or java. Which is the better route to learning programing C++ or Java? Is one language more useful? Is c++ being replaced by java?

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        I support that c++ is better than java,because I'm a c++ fans:)

        1 Reply Last reply
        0
        • K KZ_II

          I am new to programing, and i am not sure if I should learn C++ or java. Which is the better route to learning programing C++ or Java? Is one language more useful? Is c++ being replaced by java?

          K Offline
          K Offline
          Kevin McFarlane
          wrote on last edited by
          #4

          KZ_II wrote: Which is the better route to learning programing C++ or Java? It all depends what type of applications you want to create in the future. KZ_II wrote: Is one language more useful? Not really. There's huge demand for both C++ and Java. However, in another sense of "useful," C++ can be successfully applied to a wider range of applications than any other high level language. But some of those applications are best tackled by other languages (such as Java). C++ is very powerful but also very complex. In the future I see it more and more being used almost exclusively for systems programming - operating systems, high performance computing, real-time systems and games. For typical business applications languages such as Java and C# will increasingly be used. KZ_II wrote: Is c++ being replaced by java? No. What is happening is that they are being used for different purposes. BTW, if you think you will need to learn both languages you would be better off learning C++ first. C++ is big so you can't learn it in a couple of weeks. However, you should learn sufficient of it to be aware of its idioms. If you learn Java and then C++ you may run into problems. Kevin

          1 Reply Last reply
          0
          • K KZ_II

            I am new to programing, and i am not sure if I should learn C++ or java. Which is the better route to learning programing C++ or Java? Is one language more useful? Is c++ being replaced by java?

            H Offline
            H Offline
            Henry miller
            wrote on last edited by
            #5

            i am not sure if I should learn C++ or java Learn both. :) Seriously, a good programer can learn the syntax of both in very little time. Mastering either one can take 10 years, but there is an advantage of being able to say "I know C++ better, but this is a situation for Java so I'm using Java". Do not limit yourself, the basics or programing (data structres, algorithms, design patterns) carry over pretty well, even when the languages are very different. C++ and Java are not that different on the surface. Which is the better route Scheme. It is a language that is never used outside of accidemics, it is simple to learn, easy to program in. It is also nothing like C++, Java, Basic, or assemply. It is a whole different way of thinking, making some concepts easy that as a programer you are unlikly to discover in C++/Java. Is one language more useful Depends. You can't write a device driver in Java, but C++ isn't common for device drivers either. You can't write a portable web plugin in C++, while in theory Java allows this. You can't write a game that demands everything modern hardware can give in Java, but if you write a simpler game in Java is can work on both Windows and OSX. Is c++ being replaced by java? No. Nor is C# replacing either, except in very limited areas. Each has strengths and weaknesses. While you are at it, learn python, and at least one assemply language. Python is useful for some day to day programing that you don't want something as complex as Java/C++ for. Assembly is needed because you should always have in the back of your mind how the machine is really working. Once in a while this will save your from complex bugs. Scheme will teach you good habbits. Don't be afraid to learn new langauges.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups