+ 1
What's JAVA good for?
I'm trying to understand every lesson of java, but the more I understand and advance, the more I get confused! I'm learning java and other related languages in order to be able to build my own app, but I'm seeing no connection between what I'm learning and what I want! Can anyone shed some light of understanding on this confusion please?
4 odpowiedzi
+ 5
As an additional information, Java codes are 'write once, run everywhere' as they are compatible with any OS
+ 2
Java, as any other general purpose language can be used to program almost everything you can imagine. In particular, Java has the peculiarity to run on a kind of virtual machine, so that the code has to be compiled only for the Java virtual machine and therefore be executed on almost every os that has java installed without recompiling. This ensures portability and ease of maintenance as you only have to compile once to run everywhere. That's why Java is the most used language in the world for desktop applications, web apps, android apps, backends and so on.
However, Java is heavily object oriented and relies on a garbage collector to manage memory so don't expect it to be the most efficient and optimizable language, although modern compilers can make it quite fast. It's not the first choice for computational work, game engines, encryption or compression programs and things that may need clever and hacky memory manipulation.
+ 2
If you are learning Java to build apps you should also check tutorials on Android Studio as it lets you build interfaces and interactions other than just the code
+ 2
There is no definition where it should be used (like php is server-side scripting language, JS is a client-side language etc.). Java (mush like Python) can be used everywhere for everything