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. The Lounge
  3. java and c++?

java and c++?

Scheduled Pinned Locked Moved The Lounge
c++javahelpquestiondiscussion
13 Posts 11 Posters 0 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.
  • Z Offline
    Z Offline
    zhoujun
    wrote on last edited by
    #1

    just now i have a hot debate with my colleagues. two of them (one just take a java course) insist that java and c++ are much alike. we can't persuade each other. so anyone please gives me your opinions on java and c++. is java derived from c?are they much alike? :confused: this is my signature for forums quoted from shog*9: I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.

    B N J D L 6 Replies Last reply
    0
    • Z zhoujun

      just now i have a hot debate with my colleagues. two of them (one just take a java course) insist that java and c++ are much alike. we can't persuade each other. so anyone please gives me your opinions on java and c++. is java derived from c?are they much alike? :confused: this is my signature for forums quoted from shog*9: I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.

      B Offline
      B Offline
      Brian Azzopardi
      wrote on last edited by
      #2

      Why get into such debates? You are not going to convince him and (most probably) he will fail to persuade you. In cases like these my answer is always to use the right tool for the right job. I wouldn't mind getting into a debate about whether Java or C is better for a particular project becuase each project has different requirements so if someone argues that VB or Java is a great tool to write Quake4 I would disagree, but not if they want to use Java or VB to write a front-end app for example. bibamus, edamus, cras moriemur

      [eat, drink, for tomorrow we die]

      P 1 Reply Last reply
      0
      • Z zhoujun

        just now i have a hot debate with my colleagues. two of them (one just take a java course) insist that java and c++ are much alike. we can't persuade each other. so anyone please gives me your opinions on java and c++. is java derived from c?are they much alike? :confused: this is my signature for forums quoted from shog*9: I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3
             C
            / 
         C++
         /  \\
        

        Java C#


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        M R 2 Replies Last reply
        0
        • N Nish Nishant
               C
              / 
           C++
           /  \\
          

          Java C#


          Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

          M Offline
          M Offline
          Mike Sax
          wrote on last edited by
          #4

          > C > / > C++ > / \ > Java C# How 'bout: C / C++ / Java / C#

          N 1 Reply Last reply
          0
          • Z zhoujun

            just now i have a hot debate with my colleagues. two of them (one just take a java course) insist that java and c++ are much alike. we can't persuade each other. so anyone please gives me your opinions on java and c++. is java derived from c?are they much alike? :confused: this is my signature for forums quoted from shog*9: I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.

            J Offline
            J Offline
            James Pullicino
            wrote on last edited by
            #5

            zhoujun wrote: insist that java and c++ are much alike. What are you basing your comparisons on? Cars and Jeeps are much alike, but they are much different too. Drinking In The Sun Forgot Password?

            Z L 2 Replies Last reply
            0
            • B Brian Azzopardi

              Why get into such debates? You are not going to convince him and (most probably) he will fail to persuade you. In cases like these my answer is always to use the right tool for the right job. I wouldn't mind getting into a debate about whether Java or C is better for a particular project becuase each project has different requirements so if someone argues that VB or Java is a great tool to write Quake4 I would disagree, but not if they want to use Java or VB to write a front-end app for example. bibamus, edamus, cras moriemur

              [eat, drink, for tomorrow we die]

              P Offline
              P Offline
              Poul Haahr Klemmensen
              wrote on last edited by
              #6

              Brian Azzopardi wrote: In cases like these my answer is always to use the right tool for the right job But to select the right tool you must now what the differences between your tools are. And saying that Java and C++ is much the same wouldn't be a very good starting point for making a choice. Syntactically the two languages look much the same and they are both object oriented. But the inner workings of the two are very different. Just to name a few - Java relies on a Virtual Machine to execute, - The Graphics library is part of the Java language not an add on - C++ has templates - java has garbage collection and so on I also committed the crime of posting a programming question in the Lounge.

              1 Reply Last reply
              0
              • J James Pullicino

                zhoujun wrote: insist that java and c++ are much alike. What are you basing your comparisons on? Cars and Jeeps are much alike, but they are much different too. Drinking In The Sun Forgot Password?

                Z Offline
                Z Offline
                zhoujun
                wrote on last edited by
                #7

                just general comparison as two popularly-used program languages. :-O this is my signature for forums quoted from shog*9: I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.

                1 Reply Last reply
                0
                • Z zhoujun

                  just now i have a hot debate with my colleagues. two of them (one just take a java course) insist that java and c++ are much alike. we can't persuade each other. so anyone please gives me your opinions on java and c++. is java derived from c?are they much alike? :confused: this is my signature for forums quoted from shog*9: I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.

                  D Offline
                  D Offline
                  Daniel Turini
                  wrote on last edited by
                  #8

                  templates, preprocessor, multiple inheritance (I know, they are evil incarnation for Java people), inline code, metadata isolation from code (.class has class definitions AND code to be executed), and a stable execution environment (your "virtual machine" it the OS itself). Concussus surgo. When struck I rise.

                  1 Reply Last reply
                  0
                  • M Mike Sax

                    > C > / > C++ > / \ > Java C# How 'bout: C / C++ / Java / C#

                    N Offline
                    N Offline
                    NormDroid
                    wrote on last edited by
                    #9

                    Yep! thats about right! Normski. - the next bit of code is self modifying ... jmp 0xCODE

                    1 Reply Last reply
                    0
                    • Z zhoujun

                      just now i have a hot debate with my colleagues. two of them (one just take a java course) insist that java and c++ are much alike. we can't persuade each other. so anyone please gives me your opinions on java and c++. is java derived from c?are they much alike? :confused: this is my signature for forums quoted from shog*9: I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      They are similar in syntax but the differences are underlying. I've probably got it wrong since I don't use Java, but...... Java is meant to be target indepedant and relies on the JVM (Java Virutal Machine) to do housekeeping). This makes it good for web applications. C++ can be much more stand alone and for embedded realtime applications is far superior to Java. Java was derived from C++ in several ways but I'll leave it to an expert to fill in details from here. Elaine (fluffy tigress emoticon) Would you like to meet my teddy bear ?

                      1 Reply Last reply
                      0
                      • J James Pullicino

                        zhoujun wrote: insist that java and c++ are much alike. What are you basing your comparisons on? Cars and Jeeps are much alike, but they are much different too. Drinking In The Sun Forgot Password?

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #11

                        Nice analogy James :cool: Would you like to meet my teddy bear ?

                        1 Reply Last reply
                        0
                        • Z zhoujun

                          just now i have a hot debate with my colleagues. two of them (one just take a java course) insist that java and c++ are much alike. we can't persuade each other. so anyone please gives me your opinions on java and c++. is java derived from c?are they much alike? :confused: this is my signature for forums quoted from shog*9: I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.

                          P Offline
                          P Offline
                          pepe 0
                          wrote on last edited by
                          #12

                          There is someone called Bjarne who invented a cool language, he might help you. Have a look at : http://www.research.att.com/~bs/homepage.html I think he answers the question on his site.

                          1 Reply Last reply
                          0
                          • N Nish Nishant
                                 C
                                / 
                             C++
                             /  \\
                            

                            Java C#


                            Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

                            R Offline
                            R Offline
                            Roger Wright
                            wrote on last edited by
                            #13

                            Nice summary, Nish!:-D "Knock, knock." "Who's there?" "Recursion." "Recursion who?" "Knock, knock..."

                            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