Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Why JAVA (http://www.go4expert.com/forums/why-java-t3438/)

dav 16Mar2007 15:32

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

shabbir 16Mar2007 18:04

Re: Why JAVA
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++

obduk 20Mar2007 16:31

Re: Why JAVA
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

dav 21Mar2007 01:43

Re: Why JAVA
thanks 4 all replays

another Q? :
is java free

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

obduk 21Mar2007 03:36

Re: Why JAVA
Both are free,

To get the java compiler go to
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.

All times are GMT +5.5. The time now is 19:29.