Peter Duniho
11/22/2008 8:49:00 AM
On Sat, 22 Nov 2008 00:29:12 -0800, Sanny <softtanks@hotmail.com> wrote:
> I have little experience in both Java and C++. I have designed a few
> programs in both languages.
>
> I get a lot confused as many times I use Java code in C++ and C++ code
> in Java.
>
> So I have descided to only work in one Language.
Probably a good idea, for now.
> Both C++ and Java has their importance.
Yes.
> What language should I master. I just want to know who gets higher
> salary a Java Programmer or a C++ Programmer?
Difficult or impossible to say. Too many variables are left out of your
question.
> Because Learning both creates confusions So I have to Choose the best
> among them.
Yes, don't learn both at the same time. But, also don't plan to learn
just one.
There are a lot of things about programming in either that are specific to
neither. OOP is OOP, for the most part. Different languages have
different "flavors", but for the most part, basic OOP fundamentals will be
the same in either.
C++ is a somewhat lower-level language, while at the same time offers in
some ways much more complex behaviors than Java. Because of that, I'd
recommend learning Java first, just because it's likely to be somewhat
easier. Not that becoming a Java expert is easy, but there are certain
things about Java that restrict you in ways that are helpful for the
beginner.
> Whose future is better a Java Programmer or a C++ Programmer? What
> else should I learn for a good Career. Should I learn C# which is very
> easy?
Frankly, as of the last couple of months or so, if you have a job that
pays for your food, clothing, and shelter, consider yourself fortunate.
This is only going to be even more true in the coming months and years.
As for your other questions...
The programmer who is paid the highest is the one with the most
experience, who takes their profession seriously, and who continues to
learn new things in their field.
I doubt a programmer who thinks C# is any easier than Java is going to be
one of those highest-paid programmers. :) C# has simplified some things
as compared to Java, but it's added new features beyond Java as well, and
continues to do so. C# 1.0 might have literally been easier than Java,
but the fact is that both languages are reasonably complex and I don't
think there's any useful way to say that one is "easier than" the other.
> How much max salary per Annum I can get If I become a C++ Expert.
>
> and How much max salary per Annum I can get If I become a Java Expert.
In programming, there is practically no upper bound. But you won't get
paid the big bucks unless you are very skilled.
I doubt that there's any significant difference in pay between C++ and
Java programmers, but if there is, I'd guess Java pays less just because
it is currently the more popular language, making it easier to find
skilled programmers who use that language. More supply for a given
demand, lower price. But, since that guess doesn't address the demand
side of the equation, it's not worth much. :)
The fact is, salaries in the field of programming are in constant flux,
according to what technologies are most in use and what the work-force
looks like in terms of numbers. Focusing on one language or the other
based on expected salary is not likely to be productive. Learn
_programming_, learn lots of different languages, and then look for the
job that suits you the best (which may be the highest-paying one, for
someone with mercenary tendencies such as yourself :) ).
Pete