|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I have a stupid but I really want to know. What are the difference between JAVA and C++? As I know, JAVA has no pointer but C++ has.....and anything else? Last edited by kikkickme : April 16th, 2001 at 11:34 AM. |
|
#2
|
|||
|
|||
|
The biggest difference is that with C++, you compile for each processor/operating system, whereas with Java you compile (roast) once and use a virtual machine on the various operating systems.
__________________
Michael
|
|
#3
|
|||
|
|||
|
JAVA/C++ differences
Well, there are lots of differences between the two programming languages.
Although both are so called object oriented, in JAVA this concept is much stricter implemented. In C++ you can still program as in C (which is the procedural oriented predecessor of C++). You always find a way to get around the OOP thing. C++ is much more low level than JAVA which makes JAVA first choice when you start learning OOP. It is like the difference between PASCAL and C in former days. You learned PASCAL when you made first contact with programming languages and used C to do serious work. You have no problems whith memory allocation in JAVA because it is automatic, which makes JAVA much less error prone than C++ where you had to do all the stuff manually. This is also the problem when using pointers in C++. But if you look closely, JAVA has similar things as C++-pointers, but they are not implemented low level, but as a normal class, that is as a program on top of the language itself. And of course there is the thing about "write once use everywhere" as pieux already mentioned. Especially this makes writing user interfaces much more enjoyable, because you write it once and it looks (almost) the same on every system architecture. Well that is all i now for now, cause i don't have my java book with me. Hope this helps! ![]() |
|
#4
|
|||
|
|||
|
AND one obvious difference is that JAVA is a programming language and has the name of a drink while C++ has the third letter of the alphabet with two pluses at the end. =]
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > What're the difference? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|