LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-21-2009, 05:25 AM   #1
nesrail
Member
 
Registered: Jan 2009
Distribution: Differs
Posts: 121

Rep: Reputation: 15
C++ or Java


Hello.
I'm about to begin studying for "programmer" in denmark. Now I know that the studies focuses on two programming languages, java and c++. I have to deside what language to use while I'm there.
What languages would you guys chose???
 
Old 01-21-2009, 05:38 AM   #2
rsciw
Member
 
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206

Rep: Reputation: 44
what do you want to do later on?
 
Old 01-21-2009, 05:50 AM   #3
nesrail
Member
 
Registered: Jan 2009
Distribution: Differs
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rsciw View Post
what do you want to do later on?
I havn't desided yet. Maybe something with games or just programming software.
 
Old 01-21-2009, 05:50 AM   #4
nesrail
Member
 
Registered: Jan 2009
Distribution: Differs
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rsciw View Post
what do you want to do later on?
I havn't decided yet. Maybe something with games or just programming software.
 
Old 01-21-2009, 05:58 AM   #5
rsciw
Member
 
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206

Rep: Reputation: 44
for games I'd say C++
other software, again it depends what you want to do later on.
 
Old 01-21-2009, 06:00 AM   #6
rsciw
Member
 
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206

Rep: Reputation: 44
here's a wikipedia article, comparison of java with C++
now, I can't say if it's 100% accurate, still learning C++ myself, but
it does give an overview of them too in a comparison.

http://en.wikipedia.org/wiki/Comparison_of_Java_and_C++
 
Old 01-21-2009, 06:34 AM   #7
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by nesrail View Post
What languages would you guys chose???
Those languages are pretty close (in terms of power) and it is hard to say which is better, they are both popular and used by people. You should decide what you are going to do later. Or just try both and pick the one you like more.

Quote:
Originally Posted by rsciw View Post
for games I'd say C++
Which games? For mobile phones java will be a good choice for games and software development. And there are 3D games written in java (they are rare, but they exist).

Last edited by ErV; 01-21-2009 at 06:36 AM.
 
Old 01-21-2009, 07:18 AM   #8
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
Quote:
Originally Posted by nesrail View Post
What languages would you guys chose???
I would choose C++ because I like it more. The reason I like it more is because it's more low-level and has more advanced features. It's also harder to master, and I like things that are difficult. It would make me learn more about GDB too, because I don't like using a big IDE to edit my stuff. (Yes I know there's JDB but it is featureless by comparison.) Also I do Java at work so it's always nice to have a break.
 
Old 01-21-2009, 07:46 AM   #9
rsciw
Member
 
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206

Rep: Reputation: 44
Quote:
Originally Posted by ErV View Post
Those languages are pretty close (in terms of power) and it is hard to say which is better, they are both popular and used by people. You should decide what you are going to do later. Or just try both and pick the one you like more.


Which games? For mobile phones java will be a good choice for games and software development. And there are 3D games written in java (they are rare, but they exist).
mobile phone games didn't occur to me, forgot, lol.
Was thinking of 'mainstream' games, those you play on computers/consoles

One of my main games I play apparently has some parts in Java, but as you say, it's rare, so imo wouldn't really count on that)
 
Old 01-21-2009, 07:52 AM   #10
nesrail
Member
 
Registered: Jan 2009
Distribution: Differs
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by taylor_venable View Post
I would choose C++ because I like it more. The reason I like it more is because it's more low-level and has more advanced features. It's also harder to master, and I like things that are difficult. It would make me learn more about GDB too, because I don't like using a big IDE to edit my stuff. (Yes I know there's JDB but it is featureless by comparison.) Also I do Java at work so it's always nice to have a break.
I Was thinking about c++ to, but I know, like you said, its really difficult to learn. But can it be more difficult than Java??
 
Old 01-21-2009, 08:39 AM   #11
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
It's nearly impossible to learn all of C++. It is also unnecessary. Most professional C++ programmers know only a small fraction of the language.

It isn't very hard to find and learn an effective subset of C++.

Even that would be harder than learning Java. But not a lot harder. For programming ordinary desktop computers, C++ is a better language than Java and worth some extra effort to learn.
 
Old 01-21-2009, 08:51 AM   #12
trungnt_hut
Member
 
Registered: Apr 2007
Location: Vietnam
Distribution: Slackware
Posts: 38

Rep: Reputation: 15
Well, I prefer C++ but I must say that, Java is more easier.
 
Old 01-21-2009, 10:34 AM   #13
nesrail
Member
 
Registered: Jan 2009
Distribution: Differs
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks for all the replies
I think I will study C++. It might come in handy.
 
Old 01-24-2009, 09:48 AM   #14
renjithrajasekaran
Member
 
Registered: Jan 2009
Posts: 29

Rep: Reputation: 15
Study Java - If you want to take up a career in web based application and related programming.

Study C++ - If you want to take up a career in desktop based application and related programming.


I hope this helps!



Linux Archive

Last edited by renjithrajasekaran; 01-25-2009 at 03:09 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Ubuntu 7.10 64bit - how to set java path to/redirect java to libjvm.so ? Thane Ubuntu 1 03-25-2008 05:52 PM
LXer: Java news met with cautious optimism in free Java community LXer Syndicated Linux News 0 11-14-2006 10:21 PM
Firefox refuses to load Java jnlp files - plugin and java ok Melsync Linux - Software 1 06-25-2006 04:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration