C++ = VB 6.0 and JAVA = VB.net when comparing C++ with JAVA?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • intruderX
    New Member
    • Aug 2008
    • 13

    C++ = VB 6.0 and JAVA = VB.net when comparing C++ with JAVA?

    When programing robots with java, how they program hardware with java? Can java do the port programming? Or it is done in some other way? for an example...

    1). A basic O/S [created with C++] is running to work with hardware.
    2). JVM runs on that O/S.
    3). A Java program is running on the JVM, and it(JAVA) is used for the programming, as it become more user friendly to the programmers.

    I need to know whether we can program hardware with just JAVA, without help of any other component which is created with an other language[C++].
    I haven't used C++ ever.Even that person[that lecturer who was talking about mobile hacking with java] knows nothing about C++.They always say that JAVA is the developed version of C++ which has been developed, removing the all bugs of C++. So they discourage students to learn C++.The owner of that institute (A Doctor rated businessman),to ld us that JAVA has been developed by Sun Micro Systems,just like Microsoft guys developed VB.net, disposing VB 6.0.In his story,

    1) C++ is treated in the same place of VB 6.0 and,
    2) JAVA is treated in the place of VB.net.

    Not with the technology,But with the importance of those languages.But I think C++ can't be disposed as they say,because it has it's unique usages.I need to know whether I'm correct or not in this matter.Accordin g to my idea,

    1) JAVA is the best language for web and enterprise application programing as lot of communities has supported with technologies such as JSF,Hibernates and
    EJB3.0,and the famous unique qualities of java,and people say it's much more user friendlier than C++.

    2) C++ is supposed to be the best language for programing hardware.

    I'm really confused because of the sayings of these people.Even though some of them hold Doctor rates, I suspect that they try to mislead us for economical profits.
    I was tried to learn JSF, EJB3.0 and Hibernates myself, and I found EJB3.0 is a vast subject that takes time to learn.But that person told us that those each technology can be mastered with his single 5 hour seminar each.

    I'm following JAVA from the basics again as I found my knowledge is so much irregular.And I'm willing to do SCJP on next January to get confirmed the accuracy my knowledge of the JAVA basics.

    With a proper knowledge of the JAVA basics, do you think that it would be possible to Master those technologies within such a short period as he say?
    Because according to my belief,without applying the theories in a practical situation in the industry,no one can master these things.[even those people haven't done that, in the industry as far as I know].

    I would be much more obliged if you could kindly help me to shake off this chaotic situation .I need to know the truth.Anyway those people can't be trusted, as they have lied a lot of times for commercial benefits so far...!

    Thanks again!!!!
  • Laharl
    Recognized Expert Contributor
    • Sep 2007
    • 849

    #2
    I don't know much about enterprise-level Java (just "normal" Java without databases and beans and all that fun stuff) but C++ most definitely still has a place in the industry. Java hardware programming is possible (look at Symbian, the entire OS is written in Java, mobile or no and much of Solaris is as well), but I wouldn't care to do it.

    Plus, their analogy is flawed. Tons of people still use VB6, even though Microsoft doesn't want to support it anymore.

    Comment

    • intruderX
      New Member
      • Aug 2008
      • 13

      #3
      Originally posted by Laharl
      I don't know much about enterprise-level Java (just "normal" Java without databases and beans and all that fun stuff) but C++ most definitely still has a place in the industry. Java hardware programming is possible (look at Symbian, the entire OS is written in Java, mobile or no and much of Solaris is as well), but I wouldn't care to do it.

      Plus, their analogy is flawed. Tons of people still use VB6, even though Microsoft doesn't want to support it anymore.
      Thank A lot for Your help!!!

      Pointers are not supported in Java, and C/C++ is said to be supported.Some lecturers have told us that lot of Viruses are written with pointer support, and java cannot be used to create viruses as that concept has been disposed when creating Java.

      Is this a weakness of Java, compared to C ? Or is this an improvement,tha t has been made purposely? And please tell me whether the JVM has been made with Just java, or C? I'm not aware of the good usages of pointer concept.If there is any importance in programing with "that pointers" concept, what is the alternative for pointers in Java?

      Does C also need a Virtual Machine to execute itself,(just like java)?
      If not,Is there any advantage of moving to virtual machine concept?

      Symbian OS is said to has been developed with 100% Java.Isn't it attacked by viruses? If it is, How those guys have made the mobile users to allow the virus to run.
      Can't any O/S to be written so that it never gets attacked by any virus [Prevents overwriting the the System files, but runs all the other utility tools on a visible platform layer- It means, user is reported with all the processes that run on that virtual layer that runs on the System, and all the applications are run on that layer without touching System files].

      Thanks Again...!!!!

      Comment

      • Laharl
        Recognized Expert Contributor
        • Sep 2007
        • 849

        #4
        Pointers do help with viruses, but the real problem is insecure code written with (for example) the C string libraries, though other vulnerabilities exist. Java does have vulnerabilities , don't let them fool you. They're just not as well known, as C's have been studied for twenty years or so and the onus of fixing them or working around them falls on the programmer, primarily by not using the dangerous functions.

        Pointers do exist in Java, you just can't do pointer arithmetic on them or explicitly dererefence them like in C(++). Java calls them "references ," but they're essentially pointers. They're useful because without them, every C function obtains its arguments by value, as well as allowing for dynamic memory management. Also, they're key to understanding assembly-level programming.

        The JVM at this point is pure Java as far as I know, though it was originally (Java 1.1 or so) written in C.

        I'm sure attacks against Symbian exist, but the mobile market (outside of Asia, Japan in particular) isn't nearly as large as the desktop market, so that's where you get most of the malware.

        No OS is 100% virus free, apart from one that's never connected to a network or ever physically in the hands of someone who wishes to do it ill or ever installs any software. Period. And even then, the vulnerabilities still exist, they're just not being exploited.

        C does not run on a VM, it compiles its code directly to assembly/machine code (through a couple intermediate stages) and those instructions are executed directly. If anyone were to suggest running C on a VM, you could hear the screams from Redmond to wherever Richard Stallman hangs out these days. C's advantages are speed and being low-level (inline assembly, etc). Using a VM negates both.

        Comment

        • intruderX
          New Member
          • Aug 2008
          • 13

          #5
          Originally posted by Laharl
          Pointers do help with viruses, but the real problem is insecure code written with (for example) the C string libraries, though other vulnerabilities exist. Java does have vulnerabilities , don't let them fool you. They're just not as well known, as C's have been studied for twenty years or so and the onus of fixing them or working around them falls on the programmer, primarily by not using the dangerous functions.

          Pointers do exist in Java, you just can't do pointer arithmetic on them or explicitly dererefence them like in C(++). Java calls them "references ," but they're essentially pointers. They're useful because without them, every C function obtains its arguments by value, as well as allowing for dynamic memory management. Also, they're key to understanding assembly-level programming.

          The JVM at this point is pure Java as far as I know, though it was originally (Java 1.1 or so) written in C.

          I'm sure attacks against Symbian exist, but the mobile market (outside of Asia, Japan in particular) isn't nearly as large as the desktop market, so that's where you get most of the malware.

          No OS is 100% virus free, apart from one that's never connected to a network or ever physically in the hands of someone who wishes to do it ill or ever installs any software. Period. And even then, the vulnerabilities still exist, they're just not being exploited.

          C does not run on a VM, it compiles its code directly to assembly/machine code (through a couple intermediate stages) and those instructions are executed directly. If anyone were to suggest running C on a VM, you could hear the screams from Redmond to wherever Richard Stallman hangs out these days. C's advantages are speed and being low-level (inline assembly, etc). Using a VM negates both.

          Thank You Very Much!!!!

          If so, is it possible to write Viruses using the thing called "referances " of Java that you've mentioned?

          One Java lecturer told me that he can develop a Virus within half an hour(Using JAVA and J2ME),which can be sent with an SMS.And he said that that virus will run in secret(user doesn't know), when the phone user opens the SMS.After that he can always get a copy each of every SMS that phone user sends to someone else.

          Can something like that be developed using J2ME (just java, without C)?

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by intruderX
            Thank You Very Much!!!!

            If so, is it possible to write Viruses using the thing called "referances " of Java that you've mentioned?

            One Java lecturer told me that he can develop a Virus within half an hour(Using JAVA and J2ME),which can be sent with an SMS.And he said that that virus will run in secret(user doesn't know), when the phone user opens the SMS.After that he can always get a copy each of every SMS that phone user sends to someone else.

            Can something like that be developed using J2ME (just java, without C)?
            I have already deleted two threads of yours with this same question and sent you a private message informing you that discussing such things is against the site's posting guidelines. You may consider this to be your final warning.

            Comment

            • Banfa
              Recognized Expert Expert
              • Feb 2006
              • 9067

              #7
              Originally posted by Laharl
              (look at Symbian, the entire OS is written in Java, mobile or no and much of Solaris is as well)
              I don't think so, from the Symbian Wikipedia page

              The native language of the Symbian OS is C++
              Solaris is UNIX based and as such almost certainly written in C which can be verified from the OpenSolaris site where the recommend GCC as one of the choices of compilers.

              Comment

              • intruderX
                New Member
                • Aug 2008
                • 13

                #8
                Originally posted by r035198x
                I have already deleted two threads of yours with this same question and sent you a private message informing you that discussing such things is against the site's posting guidelines. You may consider this to be your final warning.
                What's the wrong with my question?
                Is there anything wrong in comparing the abilities of 2 languages? I just wanted to shake off a chaotic situation, which I had to meet with because of the sayings of some people around me.
                I'm really upset as you have mentioned this so much rudely,having deleted my threads too.

                It's OK! I'll leave your site!

                Anyway, I must thank the kind people who remain as the members of your site and tried to help me!

                Thanks!!!!

                Comment

                • JosAH
                  Recognized Expert MVP
                  • Mar 2007
                  • 11453

                  #9
                  Originally posted by intruderX
                  What's the wrong with my question?
                  Is there anything wrong in comparing the abilities of 2 languages? I just wanted to shake off a chaotic situation, which I had to meet with because of the sayings of some people around me.
                  I'm really upset as you have mentioned this so much rudely,having deleted my threads too.
                  This is what's wrong with your question:

                  If so, is it possible to write Viruses using the thing called "referances " of Java that you've mentioned?
                  Asking about and discussing viruses is explicitly forbidden here. If you are so
                  upset about this fact then maybe this is not the place for you; btw I don't see
                  any rudeness in the deletion of your threads that were against the rules.

                  It's OK! I'll leave your site!
                  Ok, have fun somewhere else.

                  kind regards,

                  Jos (moderator)

                  Comment

                  Working...