Question:
What makes Java better than any other programming languages?
anonymous
2013-10-11 06:37:20 UTC
Do you prefer Java? if so, why?
Four answers:
godfatherofsoul
2013-10-11 09:56:13 UTC
Different languages have different advantages and disadvantages. Only young programmers think there's a "best" language. Languages are nothing more than tools.



That being said, Java is my favorite language because the syntax is so clean. People who have problems with it usually don't understand OOP and blame it on the language. Compare Java's syntax to C++ (which is horrible and error prone). However, if I had to do native development, C++ is my instant choice because it's so ubiquitous.
Ratchetr
2013-10-11 14:11:48 UTC
A few things that come to mind:



• Runs everywhere. Java runs on more platforms than any other language. This reduces development costs when support for more than one platform is required.

• Rich run time library. Java has a very feature rich run time. This reduces development costs because developers don't have to continually reinvent (and debug) the wheel.

• Good choice of IDE's. There are a number of good IDE's out there for Java, with all the necessary tools a developer needs. (Syntax highlighting, auto-completion, code refactoring, etc.).



That being said, Java is not my preferred language. I prefer C# when multi-platform support isn't a requirement. Reasons I prefer C#:

• Java as a language has stagnated since about 2004. C# on the other hand as evolved steadily since it was first introduced in 2002. It contains a significant set of language features that do not exist in Java (We may finally see some of these in Java 8. Maybe.)

• Proper support for getters and setters. All those getFoo setFoo methods in Java drive me batty. C# allows you to reference Foo as a first class property.

• Operator overloading. Without it, you can't compare things like strings with the intuitive ==, you need the silly Equals method.

• Functional programming support. This is where Java is really lagging (was promised for Java 7, but delayed to 8).

• Fantastic IDE.



But there has never been a programming language that is better than all the rest. Different languages are best suited for different tasks.
anonymous
2013-10-12 01:38:16 UTC
I don't prefer Java, to be honest. I learnt to program using C# and it's kind of stuck. I prefer the naming conventions for methods in Java, though, and Eclipse is very nice to use when it's not messing everything up for me. It's also nice that it's cross-platform but annoying that it's so poorly optimised where memory is concerned.



Most programmers will tell you that there is no best language. They're all good for different things.
Greywolf
2013-10-11 13:53:25 UTC
Nothing. Java is not better than any other programming languages. In many ways it is worse (harder for beginners, much easier to write bad code, not fast enough for high-performance situations).


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...