I’m a beginning programmer and the I&CS program at our school starts us off learning Java. It seems to me like C and its spin-offs are way more prevalent in the real world. Is this true?
How do expert programmers use Java for their work?
To be more precise, I want to know in what situations would a programmer prefer to use Java over other languages. OpenOffice is definitely a prominent example of Java, but couldn’t it have been coded using anything else?
Unless you’re writing games, embedded device software, maintaining legacy software, or writing high performance parallel computation software (eg CUDA), you’ll get much more mileage out of Java these days than C/C++. C# is actually more Java-derived than C-derived despite the name, in case you’re thinking of that (many would argue that it’s better than Java, myself included).
The statement that “Java is slower than C/C++” is slowly but steadily becoming a myth (see for instance this benchmark). It’s certainly much more programmer-friendly, and there are rapidly emerging more and more enterprise-grade solutions that specifically deal with Java, its development, and its deployment in the real world.
Particularly in server applications, you’ll find that Java is gaining enormous ground. In most fields at this point, it’s debatable whether it really is second-place to C/C++ in usage.