Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the benefits of Java? [closed]

Tags:

java

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

like image 997
Sophie Avatar asked Oct 28 '08 04:10

Sophie


People also ask

Why do we need to close resources in Java?

It opens a few resources (e.g. files, database connections, remote streams) and processes it. It works a few minutes and then it exits. Let's say it's in Java (if the language is relevant)

What is Open closed principle in Java?

In object-oriented programming, the open–closed principle states "software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification"; that is, such an entity can allow its behaviour to be extended without modifying its source code.


2 Answers

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.

like image 100
Greg Hewgill Avatar answered Nov 16 '22 02:11

Greg Hewgill


  • Portability
  • Incredible breadth of libraries
  • Bottom-up security
  • Performance
  • Robustness
like image 31
erickson Avatar answered Nov 16 '22 04:11

erickson