C++ vs. Java

Discussion in 'Programming' started by mark123456, Sep 9, 2007.

  1. mark123456

    mark123456 Peon

    Messages:
    786
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #41
    my bad..i thought c# was
    for i=1 to i=10
    //code here
    next

    i dont write c# my friend told me that..he was obv bsing thanks for the heads up
     
    mark123456, Oct 2, 2007 IP
  2. Andrei P.

    Andrei P. Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #42
    He was probably confusing it with VB and/or VB.NET, where it looks like this:

    For i = 0 To 5
    // Loop
    Next i
     
    Andrei P., Oct 2, 2007 IP
  3. mark123456

    mark123456 Peon

    Messages:
    786
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #43
    alright thanks a lot man
     
    mark123456, Oct 2, 2007 IP
  4. raptorex

    raptorex Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #44
    there's 3rd option:

    C++ + java => C#
     
    raptorex, Oct 4, 2007 IP
  5. mark123456

    mark123456 Peon

    Messages:
    786
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #45
    is c# as powerful as C++??
     
    mark123456, Oct 4, 2007 IP
  6. Andrei P.

    Andrei P. Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #46
    I can't think of anything that you can do in C++ but can't do in C#. However C++ is the better choice for developing memory and CPU intensive applications such as a game. That's because a C# application uses its own memory management system and using C++ in computer games would be more efficient performance-wise.
     
    Andrei P., Oct 4, 2007 IP
  7. worldman

    worldman Notable Member

    Messages:
    3,337
    Likes Received:
    261
    Best Answers:
    0
    Trophy Points:
    225
    #47
    Makes sense. Most games I know are made using C+ and C++. Hardly JAVA.
     
    worldman, Oct 5, 2007 IP
  8. MetaCipher

    MetaCipher Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #48
    What is C+?

    Anyway, practically speaking C++ is a stronger language than Java for many reasons. More often than not though, people cannot handle it, get confused, and move on to Java that they automatically deem better. The same goes for C#. This isn't to say Java is bad, by all means it's a wonderful language. But in all seriousness Java is yet to catch up with C++ in terms of real-time rendering (or the low level type of stuff). C++ and Java are both cross-platform, if you know what you are doing. Java has the advantage of being compiled into bytecode where all you need is something to run it. C++ on the other hand has to be compiled on the machine it's going to be run on. Looking at C#, don't even think about going cross-platform so easily, and because it's Microsoft proprietary, don't use it unless that's all you want. I don't advise anyone to ever use C# over Java, Java wins by far.

    The problem of picking with language really depends on what you want to do. Networking, GUI, Cellphone games, and the like go with Java. If you want to make some PC games, low-level stuff (like people mentioned), go with C++. You'll have things you'll struggle with on both sides. Some people struggle with threads in Java, other's struggle with pointers in C++. It all depends. If you can, and are willing, pick up both as things are always moving forward and sooner or later C++ probably won't be around and thrown in the pile of older languages.

    In terms of speed, Java has really caught up. This isn't an issue anymore, it's more or less what you want to do with the language.
     
    MetaCipher, Oct 11, 2007 IP
  9. sauravgr8

    sauravgr8 Peon

    Messages:
    556
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #49
    Both C++ and JAVA are OOPs based , as both of these follow the concept of data hiding , data abstraction , data excasulation , polymrphism and inheritance , but we can say that most of the codes which we have to create in C++ for a specifc task are already built in there in JAVA, so undoubtedly we can work on a wider field,moreover JAVA provides a varietf ofplatform for dynamic memory allocation of varialbles which are not very common in C++ , so over all we can say that Java is definitely advanced version if C++ , but if u don have the concept of C++ u cant even go for JAVA....
     
    sauravgr8, Oct 11, 2007 IP
  10. worldman

    worldman Notable Member

    Messages:
    3,337
    Likes Received:
    261
    Best Answers:
    0
    Trophy Points:
    225
    #50
    C+ is the learners step down version of C++
     
    worldman, Oct 12, 2007 IP
  11. JmtJbm

    JmtJbm Greenhorn

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #51
    Java
     
    JmtJbm, Feb 19, 2013 IP