Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 16th, 2001, 07:11 AM
kikkickme kikkickme is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 9 kikkickme User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking

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.

Reply With Quote
  #2  
Old April 19th, 2001, 11:35 PM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 9
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

Reply With Quote
  #3  
Old May 4th, 2001, 09:57 AM
alex_r alex_r is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Frankfurt, Germany
Posts: 6 alex_r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!

Reply With Quote
  #4  
Old May 16th, 2001, 07:06 PM
z-lite z-lite is offline
wuz here
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2001
Location: FL
Posts: 648 z-lite User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to z-lite
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. =]

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > What're the difference?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway