Thread: C++ vs Java

  1. #16
    CS Author and Instructor
    Join Date
    Sep 2002
    Posts
    511
    Java does have a limited form of gotos
    (but not using the keyword "goto"
    Technically goto is considered a keyword. However, it is not supported.
    The limited form of gotos is usually used with loops. They are called labeled for or labeled while loops
    Mr. C: Author and Instructor

  2. #17
    Registered User Moni's Avatar
    Join Date
    Oct 2002
    Location
    Dhaka, Bangladesh.
    Posts
    104
    Originally posted by biosninja
    The stupidity of this thread. Has been done before. This is a C/C++ board not java...making this thread pointless!

    Java is a multi platform language which makes it slower. And if I'm correct... it doesn't have pointers (correct me if i'm wrong). So...whats the use of Java? other than writing applets and other web stuff.



    Multiple inheritence is quite usefull whem used correctly and in the right places
    Hello! I wrote this thread as:

    I know JVM is written in C and C++.

    But it is still slow."What the C/C++ programmers are doing to improve it?" was my question.

    From C++ programmers point of view I wanted the answer and that is why I have posted it here........
    We all are the components of a huge program...... the programmer is always debugging us with His debugger.

  3. #18
    Bios Raider biosninja's Avatar
    Join Date
    Jul 2002
    Location
    South Africa
    Posts
    765
    Sorry...Had a bit of a bad day and took it out on the board. My sincerest apologies.

    Each version of the java virtual machine is a bit faster. The coders is working on it. But remember that it will NEVER be as fast a C/C++ because it's multiplatform
    The knack of flying is learning to throw yourself at the ground and miss.

  4. #19
    Registered User Moni's Avatar
    Join Date
    Oct 2002
    Location
    Dhaka, Bangladesh.
    Posts
    104
    Ok! Ok!
    Do you know about C# it's also platform independent but it's faster than Java!
    We all are the components of a huge program...... the programmer is always debugging us with His debugger.

  5. #20
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    .NET framework can go from IL (intermediate language) to machine code - like JIT compilation for Java.

    Comparing speed is very subjective with too many variables to consider.

    gg

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