Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 14th, 2008, 5:32 PM   #1
wee
Newbie
 
Join Date: Jan 2008
Posts: 4
Rep Power: 0 wee is on a distinguished road
c++ vs. java

I'm new to computer programming and i only know HTML but i want to take it to the next level,and i've been reading some tutorials about java and so far i like the sound of it. But are there any advantages c++ has over java? because it seems as if more people prefer c++ for whatever reason. but being c++ is quite a bit older is it worth learning or will it be out of date in a couple years?
wee is offline   Reply With Quote
Old Jan 14th, 2008, 5:40 PM   #2
null_ptr0
12 years old
 
Join Date: Nov 2007
Posts: 94
Rep Power: 1 null_ptr0 is on a distinguished road
Re: c++ vs. java

Imcomparable.
null_ptr0 is offline   Reply With Quote
Old Jan 14th, 2008, 5:50 PM   #3
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
Re: c++ vs. java

Java and C++ are very comparable. I suggest you use google to look up some more thorough information. In general, Java is a less powerful (in both speed an expressiveness) language but easier to use language. C++ gains power and expressiveness at the cost of complexity. C++ won't be going out of date anytime soon because its still one of the best languages for performance critical systems (Like all the cutting edge video games on your hard drive).

For a learner I would pick Java over C++, but I would say that Python is a better starter language than either of those.
__________________
Robotics @ Maryland AUV Team - Software Lead
Game_Ender is offline   Reply With Quote
Old Jan 14th, 2008, 6:34 PM   #4
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 4 Narue is on a distinguished road
Re: c++ vs. java

>Java and C++ are very comparable.
Not without an application on which to compare them. Language comparisons are generally useless out of context, and the context is any project where both are viable options.
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote
Old Jan 14th, 2008, 7:30 PM   #5
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 856
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
Re: c++ vs. java

With C++, you will spend most of your time learning the intricacies of the language and the standard libraries.

With Java, you will be able to focus on OOP concepts and program design.

It is also worth mentioning that there are numerous facets of C++ that are simply not present in Java. For example, all variables (with the exception of basic types) are references in Java; in C++, a variable can be a pointer, reference, or an object itself.
titaniumdecoy is offline   Reply With Quote
Old Jan 14th, 2008, 7:48 PM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Re: c++ vs. java

In partial response to titaniumdecoy: If you do learn Java, I'd recommend learning the standard libraries for it too. There's a lot of useful classes out there.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jan 14th, 2008, 10:22 PM   #7
wee
Newbie
 
Join Date: Jan 2008
Posts: 4
Rep Power: 0 wee is on a distinguished road
Re: c++ vs. java

Thanks to all of you that posted,the information you guys provided has helped out tons. I've decided i'd rather learn c++ and i'm up for the challenge which should keep my interest.

thanks
wee is offline   Reply With Quote
Old Jan 14th, 2008, 11:04 PM   #8
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,033
Rep Power: 5 lectricpharaoh will become famous soon enough
Re: c++ vs. java

Quote:
Originally Posted by Game_Ender
Java and C++ are very comparable. I suggest you use google to look up some more thorough information. In general, Java is a less powerful (in both speed an expressiveness) language but easier to use language.
I've found that because many of the simplifications in Java make it cumbersome to express certain things, in some ways it's a harder language to use.

@OP: Language comparisons are often biased, so when you ask for such a comparison, especially when you phrase it in an adversarial manner, you probably won't receive productive replies. I'm not a big fan of Java, myself, but that is all it is- personal opinion. Different languages are better suited to different things; after all, if one language was invariably the best, everyone would just use that.

As for a starting out language, I've heard good things about Python, though I've never used it. My recommendation, if you're looking to write Windows-based programs, would be C# (C sharp). It's basically Microsoft's answer to Java, except that the language is more akin to C++ than Java when it comes to expressiveness. Many of the 'syntactic sugar' aspects of C#, such as properties and operator overloading, make it possible to write much clearer code. Also, the .NET Framework classes offer a lot of functionality, and I prefer them to the Java API (which in many ways bears warts from previous versions, or Java's restrictive syntax).
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Jan 14th, 2008, 11:44 PM   #9
mbd
Programmer
 
Join Date: Nov 2007
Posts: 86
Rep Power: 1 mbd is on a distinguished road
Re: c++ vs. java

I know English pretty well, but I am ready to take it to the next level. Are there any advantages Japanese has over French?
mbd is offline   Reply With Quote
Old Jan 15th, 2008, 4:09 AM   #10
Salem
Programmer
 
Join Date: Nov 2007
Posts: 33
Rep Power: 0 Salem is on a distinguished road
Re: c++ vs. java

> But are there any advantages c++ has over java?
Why did you choose the C++ forum to ask this on, as opposed to the Java forum?
It seems to me that you've already selected the answer you want, and are just looking for additional confirmation of your choice from others who are bound to say "x is better than y".

> but being c++ is quite a bit older is it worth learning or will it be out of date in a couple years?
You can predict with a very good probability how long something will last, simply from knowing how old it is (would you bet the pyramids in Egypt will be destroyed in your lifetime?). How many "it's the best thing" languages have appeared and sank without a trace since say Fortran and COBOL emerged.

C++ certainly isn't going to vanish in a couple of years, and will certainly manage a good chunk of your career.

You may as well learn both, so the only real choice is which one you learn first. As Narue hinted, languages are just tools to get things done. Part of being a good developer is knowing which tool(s) to use for the job.

Knowing only one language is like being a carpenter with only a hammer. Sure you can shape wood, but it ain't a pretty sight.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Salem is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming with Java: Tutorial ReggaetonKing Java 7 May 20th, 2008 10:58 AM
Special browser in Java (Project) stalefish Java 3 Feb 9th, 2008 4:22 PM
First Java Program duale2005 Java 3 May 22nd, 2006 5:17 PM
Java programmers, game developers, artists, be ware! RPG game team is recruiting! atcomputers.us Paid Job Offers 7 Sep 25th, 2005 7:25 PM
Begin my first lesson to learn Java satimis Java 7 Mar 3rd, 2005 2:45 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:02 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC