LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   C++ or Java (https://www.linuxquestions.org/questions/programming-9/c-or-java-698825/)

nesrail 01-21-2009 05:25 AM

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???

rsciw 01-21-2009 05:38 AM

what do you want to do later on?

nesrail 01-21-2009 05:50 AM

Quote:

Originally Posted by rsciw (Post 3416019)
what do you want to do later on?

I havn't desided yet. Maybe something with games or just programming software.

nesrail 01-21-2009 05:50 AM

Quote:

Originally Posted by rsciw (Post 3416019)
what do you want to do later on?

I havn't decided yet. Maybe something with games or just programming software.

rsciw 01-21-2009 05:58 AM

for games I'd say C++
other software, again it depends what you want to do later on.

rsciw 01-21-2009 06:00 AM

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++

ErV 01-21-2009 06:34 AM

Quote:

Originally Posted by nesrail (Post 3416008)
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 (Post 3416036)
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).

taylor_venable 01-21-2009 07:18 AM

Quote:

Originally Posted by nesrail (Post 3416008)
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.

rsciw 01-21-2009 07:46 AM

Quote:

Originally Posted by ErV (Post 3416070)
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)

nesrail 01-21-2009 07:52 AM

Quote:

Originally Posted by taylor_venable (Post 3416097)
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??

johnsfine 01-21-2009 08:39 AM

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.

trungnt_hut 01-21-2009 08:51 AM

Well, I prefer C++ but I must say that, Java is more easier.

nesrail 01-21-2009 10:34 AM

Thanks for all the replies:)
I think I will study C++. It might come in handy.

renjithrajasekaran 01-24-2009 09:48 AM

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


All times are GMT -5. The time now is 02:58 AM.