Why JAVA

Discussion in 'Java' started by dav, Mar 16, 2007.

  1. dav

    dav New Member

    Joined:
    Mar 15, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    simle question I want to ask why java? why not C++?
    actually I used delphi for 6 years I loved it, but now in the university it is not preffered for the profs to work with delphi so I have to learn C++ or Java but I can not have a choice cause I have a limited knowledge about both
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I am C++ guy and would prefer C++ over Java as of now but situation may come where I may be forced to switch but as of now my vote for C++
     
  3. obduk

    obduk New Member

    Joined:
    Mar 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    First of all, I prefer C / C++ to Java, however there are a number of advantages to Java.

    1) Java is safer, because it runs it's own virtual machine, it is so much harder to crash a computer than with C.

    2) Java is more flexible, because it runs on a virtual machine, you do not need to re-compile it to get it to run on a different OS etc, the different OS just runs a different virtual machine.

    3) Jave has hundreads of libaries that come standard with it, for everything from GUI's to network protocols.

    4) Java has an excelent documentation system, Java Doc, which is a standard documentation system

    There are more advantages
     
  4. dav

    dav New Member

    Joined:
    Mar 15, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    thanks 4 all replays

    another Q? :
    is java free

    and what is the best compilers 4 both Java and C++ in ur opinions
     
  5. obduk

    obduk New Member

    Joined:
    Mar 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Both are free,

    To get the java compiler go to
    http://java.sun.com/
    This is the compiler released by the people who wrote Java, and so is good. By the sounds of things I would advise you to learn Java first, if you would like to be able to quickly and easily write complete programs. There is also much better documentation for Java, and as it is written by one company, it is much mored focused.

    C / C++ is a much more confusing topic, and open to discussion.

    GCC (Gnu C Compiler) is an open source compiler, and is availaibe for free for Linux.
    There is also a version availialbe for Windows, go have a look for MinGW.

    For a Windows C Compiler (A C Compiler written for Windows, and so is much faster), then the best option is visual studio.

    It really depends on what you are wanting to do, if you would like to write large programs, i.e. big software, games, operating systems, you would use C. Also C is much more basic, and give you more control.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice