Will Java ever be as efficient as C or C++?

This is a discussion on Will Java ever be as efficient as C or C++? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; JVMs provide architecture and platform portability. Having an x86 cpu doesn't mean macs can use the x86 JVMs.. .there's no ...

  1. #31
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    JVMs provide architecture and platform portability. Having an x86 cpu doesn't mean macs can use the x86 JVMs.. .there's no such thing... JVMs need to be architecture and platform specific.

  2. #32
    Jez
    Jez is offline
    The C-er
    Join Date
    Mar 2004
    Posts
    192
    At the moment a Java applet will run on windows or Linux on a PC , the fact that they're both x86 isn't the issue. Let's see you write c/c++ code and compile it so the binary runs on either platform. With Java the byte code is completely portable. In any case, there are plenty of smart phones + PDA's , web fridges, etc using ARMs or whatever. I don't think Apple's switch will ruin Java's appeal as a multi platform solution.

  3. #33
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    Let's see you write c/c++ code and compile it so the binary runs on either platform.
    Although C++ binaries are not cross-platform, using #defines and proper versioning techniques, the source code can be built on any platform. This is how Firefox works.

    In any case, Java binaries are not really cross-platform either. Java needs the JVM to be installed first. So if your definition of cross-platform means "just find a way to run it", then C++ can just use a binary emulator, like WINE to run on both platforms.

    At the moment a Java applet will run on windows or Linux on a PC
    Not necessarily. You need the JVM installed. And if the applet uses a graphics feature that only appears in the latest versions of the JDK, it won't work.

    With Java the byte code is completely portable.
    Really? Try running Java code on these platforms: Xbox/PS2/Gameboy Advance. It won't work out-of-the-box, you'll have to find some unofficial JVMs.
    Last edited by Dante Shamest; 06-09-2005 at 01:41 PM.

Page 3 of 3 FirstFirst 123
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