What are the benefits of Java? [closed]

I always hear that programmers try to pick the right tool for the job. I've never programmed in Java, so I was wondering What are its benefits? Why is it so popular? What should I use it for?

I just program recreationally. Is there anything about it that makes it particularly fun??


Asked by: Melissa177 | Posted: 21-01-2022






Answer 1

I think after 12 years or so, the "write once, run anywhere" mantra is almost true. Writing Java code pretty much isolates you from the platform dependent aspects of the systems on which you deploy it.

Answered by: Aida532 | Posted: 22-02-2022



Answer 2

  • Portability
  • Incredible breadth of libraries
  • Bottom-up security
  • Performance
  • Robustness

Answered by: Luke569 | Posted: 22-02-2022



Answer 3

Massive communities, the amount of help, libraries, IDE's, is huge (and thats a good thing).

Answered by: Emma332 | Posted: 22-02-2022



Answer 4

For a casual programmer Java can teach a lot about object-oriented programming, and encourage good programming habits in general, without the need to worry about as many of the "messy" details (pointers, memory management) as, say, C++.

It's also a bit easier to debug "catastrophic" errors.

Answered by: Brooke230 | Posted: 22-02-2022



Answer 5

Java is really good at integration - there are specifications and implementations for integrating with many kinds of systems that you're likely to run into in an "enterprise" environment.

It's not really a "fun" language relative to popular high-level languages.

Answered by: Michelle290 | Posted: 22-02-2022



Answer 6

This seems to be getting healthy answers, but you might also want to look at "Why do people use Java?"

Answered by: Walter288 | Posted: 22-02-2022



Answer 7

Java is a good language, but that is secondary to the importance of the standard library that comes with it. The jdk may not be the most elegant kit ever built, but it is extensive, powerful and reliable. Programming in Java the language is simple. Programming with appropriate reuse of the jdk is what it is all about.

Answered by: Walter188 | Posted: 22-02-2022



Answer 8

Cross platform is in my opinion the most relevant benefit.

The main goal of Java was to create a programming language that could run anywhere. The target was GUI apps. This however never happen because the environment was too slow at the beginning ( now it has been improved ) but it prove true in the server side where the cost of development reduced a lot because the product development can be done in PCs and the deployment in very expensive hardware.

It brought easy of development also, because it was designed to have C++ like syntax but running on a virtual platform to avoid platform specific code. At first the penalty was the execution speed, because it was interpreted, but release after release the interpreters became more and more faster that even MS model its next generation of development after java and call it .net

Additionally You can have a read of the Java design goals here

Answered by: Freddie288 | Posted: 22-02-2022



Answer 9

I want to add one point: Java keeps a good compatibility to earlier versions. That means, your Java-projects are compile and run in most cases without any problem on newer versions. That seems to be a little point, but this stability in API's and language helps to build a big community around Java, including good tool-support.

Others already mentioned other important points:

  • good portability
  • lot's of libraries for nearly anything
  • easy debugging and easy to catch problems

Answered by: Rafael516 | Posted: 22-02-2022



Answer 10

There are only two reasons to use Java:

  • The Java Virtual Machine (Hotspot).
  • The huge amount of available libraries and tools.

There are other languages that run on the JVM and make better use of Java libraries than Java does, however.

Answered by: Wilson125 | Posted: 22-02-2022



Answer 11

After using Java for some time, I've come to the conclusion that it's fun to write in, limited in some very irritating ways, and it's performance is good though it seems that many programs are crippled by poor design.

I'm not sure if the latter is a function of Java, or an effect of Java.

In either case, in addition to all of the above stated benefits it's very useful for doing "net" related things. Treating resources with a simplified interface regardless of "where" the particular resource is, etc...

It is by no means a universal hammer.

Answered by: Max804 | Posted: 22-02-2022



Answer 12

oop provides like encypsilation ,inheritance,polymorphism not available in traditional programing .oop is closer to real life presentation of the programming 1. Relation ships can be representation using inheritance 2. Programme developement become easy due to increased modularity

Answered by: Lenny945 | Posted: 22-02-2022



Similar questions

.net - What are the main benefits of using Mono over Java?


java - What Are the Benefits of Struts

I recently added Struts 1.3 to my application on Tomcat. Here are my observations, MVC. Servlet/JSP does this fine for me, where JSP is the view and servlet is the controller. I don't see any benefit to get the mapping from an XML file since our mapping is very static. Action Form. I can see some benefits of action form but not huge. Tags. I already uses JSTL and don't see any advantage usin...


java - What Are The Benefits Of Scala?

Closed. This question is opinion-based. It is not c...


java - What are the benefits of using fips for the JCE?

I used the FIPS provider in the JCE, but couldn't really see any difference - I specifically looked for the maximum key sizes but didn't find any difference there. What advantages does enabling FIPS actually provide?


java - Benefits of arrays

As I see it, the advantages of a list over an array are pretty obvious: Generics provide more precise typing: List<Integer>, List<? extends Number>, List<? super Integer>. A List interface has a bunch useful methods: addAll, remove etc. While for arrays all standard operations except get/set must be performed in a procedure manner by passing it...


What are the benefits of using an iterator in Java

I was browsing over the following code example: public class GenericTest { public static void main (String[] args) { ArrayList<String> myList = new ArrayList<String>(); String s1 = "one"; String s2 = "two"; String s3 = "three"; myList.add(s1); myList.add(s2); myList.add(s3); Iterator<String> itr = myList.iterator(); String st; ...


java - Why maven? What are the benefits?

Closed. This question is opinion-based. It is not c...


java - Benefits to using Spring EL over OGNL?

I was wondering what exactly moved Spring to use Spring EL over OGNL in its web flow product: http://static.springsource.org/spring-webflow/docs/2.2.x/reference/htmlsingle/spring-webflow-reference.html#el-language-choices With OGNL, I can dynamically ...


What are benefits of running Java on Linux (moving away from Windows)

I am currently running a large distributed Java system on Windows. What are benefits of moving to Linux - from a Java point of view? One I can think of is being able to run 'services' natively. At the moment I have to log in to the Windows box and start the Java program. Are there performance gains, etc.?


Benefits of having a Java class with just public static final fields?






Still can't find your answer? Check out these amazing Java communities for help...



Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)



top