i would like to take up a programming lanaguage, i did a search... can't really tell the difference between Java and C++. Anyone can help :confused:
Printable View
i would like to take up a programming lanaguage, i did a search... can't really tell the difference between Java and C++. Anyone can help :confused:
Java is (should) be platform independent. It's binary and source compatible. So the same Java applet will run on un*x/windows/whatever.
A C++ program can be made platform independent but then you must use only the standard C++ libraries. Even then it's only source compatible and not binary compatible. Meaning you need to recompile your program for every platform you want to run it on.
c++ is pointers which is not present in java
But by using java we can do a lot of things graphically ,they r really cool
applets,Rmi,Corba and all those stuff
r really cool
u enjoy working in java
It's a question of
Compile once and run evrywhere
vs
Write once compile evrywhere
Usualy compiled C++ is a lot more memmory and processor efficient then Java..
But on the otherhand Java applets are easier to install (and run) for the end user,
unless you plan on providing compiled binaries for evry system..
so it's a question of taste..
What kind of stuff do you want to write.. how much hardware access do you need etc..
If you learn C/C++ the switch to Java isn't realy hard, a lot of stuff is completly interchangeable..
<edit type="add">
BTW this is not the forum for this thread...
the tutorials forum is for posting tutorials written by yourself,
not for questions
</edit>
sorry i post in the wrong forum.
Hmm.. i have another question the programs used on windows are normally programme in c++/vb why it is so?
Well VisualBasic is a realy easy language and allows for quick interface design for programs with minimal functions..
C++ is the language windows itself is written in.. (also most unixs, macos and linux are written in c/c++)
C++ is a realy powerfull language and THE choice for writing any real program..
**Thread moved from Tutorials to General Chit Chat**
java is commonly found on webpages as security logins and applets... other than this i don't find jaav really useful :p
Both Java and C++ are both nice languages, but C++ of course compiles to native code.