Java or C++

This is a discussion on Java or C++ within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Which will eventually be the best language to use reguarding Java and C++....

  1. #1
    Registered User subdene's Avatar
    Join Date
    Jan 2002
    Posts
    359

    Java or C++

    Which will eventually be the best language to use reguarding Java and C++.

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    By the power of my crystal ball, I say Java++.

  3. #3
    Registered User subdene's Avatar
    Join Date
    Jan 2002
    Posts
    359
    Why though? I thought Java was just an offset of c++.

  4. #4
    tgm
    tgm is offline
    Registered User tgm's Avatar
    Join Date
    Jun 2002
    Posts
    150
    This gets so old.
    Each language is like a tool, and just like tools, some are better suited for jobs than others. The more tools you have (and know how to use) in your toolbox the faster and better you can finish whatever job is at hand.
    Neither language will ever be better or worse than the other, only better suited for a particular purpose.

  5. #5
    Registered User subdene's Avatar
    Join Date
    Jan 2002
    Posts
    359
    Ok. So what are the main usages between the two languages? I know java is a major fore-front in the telecommunitcations industry.
    Be a leader and not a follower.

  6. #6
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Java is more platform independent because of the java virtual machine. It is also slower.

    C++ is faster and not platform independent unless you compile for a specific platform.

  7. #7
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >Ok. So what are the main usages between the two languages?
    >I know java is a major fore-front in the telecommunitcations
    >industry.

    Systems like a mobile phone, car infotainment system, digital TV etc., are usually build in layers of software. The hardware layer contains the software which interacts directly with the hardware, above hardware layer, there is the OS layer. Which is normally used as interface for the applications. But often, between the application layer and the OS layer, there is a layer which contains low-level libraries and sometimes drivers. But often drivers are built in the OS layer. The top of this layered architecture is the application layer. Here are the applications which the user of the device uses.

    Applications for a mobile phone can be an addressbook, number recognition, voice dialing etc. In modern mobile phones, the applications in the application layer are written in Java, the other layers are written in C or C++, but usually C++ because of its OOP facilities.

    When using Java as language for the application layer and applications, a Java Virtual Machine (JVM) is between the OS layer and the application layer. The JVM makes it possible to do stuff like remote updating of software or downloading new software to the device in a platform independent way. Updating or downloading new software means putting Java bytecode into the device. The JVM handles this bytecode.

    In this way, application layer programmers don't need to know very much about the lower layers and the hardware.

    C++ is in such devices like the described mainly used for low level stuff and OS level stuff. Note that at the hardware level, also assembly is used. And Java is mainly used for the higher level stuff, which is the applications.

  8. #8
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    well with the new .NET everything seems to be integrated.. But i dont think thats the way to go...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C#, Java, C++
    By incognito in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 10-05-2004, 02:06 PM
  2. First Java Class at college
    By GanglyLamb in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 09-29-2004, 10:38 PM
  3. The Java language is being expanded
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 06-11-2004, 09:07 PM
  4. Java woes
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 07-06-2003, 12:37 AM
  5. C or Java as a first language
    By CorJava in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 10-23-2002, 05:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21