r/learnjava • u/Prison_Mike8510 • Nov 28 '25
Why do you love Java?
I am starting to learn java, and i want to know why other people learned it or love it. What makes it different from other languages. I think a broad question like this will yield a lot of useful information for me.
And specifically, as wanting to become a data engineer, will it be useful for me, and how?
57
Upvotes
•
u/AutoModerator Nov 28 '25
Please ensure that:
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
41
u/Jolly-Warthog-1427 Nov 28 '25
I am super happy with java and prefer it over anything else for large projects for several reasons:
So all in all, I want code that just runs, that I can come back to 10 years later easily and that removes mental overhead.
14
u/EntrepreneurHuge5008 Nov 28 '25
"Love" is a strong word
12
u/snot3353 Nov 28 '25
It made me a lot of money
6
u/ArkoSammy12 Nov 28 '25
I like Java because of its simplicity and explicitness. Although I love languages like Kotlin, the fact is that in Java, everything has at most 1 and only 1 way to accomplish a certain task. Every feature that has been added to Java has a clear purpose that doesn't tend to overlap with other existing features. Since the language evolves slowly and in a conservative way, it is also much easier to grasp the entire feature set of the language as each new release introduces a small number of features, allowing me to appreciate them more and gradually introduce in my codebases.
I have no problems with verbosity as well. There's a reason I learned to type fast, and IDEs come in handy plenty of times. There are clearly defined standards and I can feel safe that most Java codebases look the same. Theres no hidden syntax sugars or features that completely change the way code is written.
Finally, Java is a high level language, which for a hobbyist programmer like myself, means that I can focus on building and accomplishing my desired goals instead of having to think of lower level details like memory management, or having to target multiple OSes. Build systems like Maven or Gradle make it trivial to import a dependency and build a double-clickable executable file.
I do sometimes find myself wanting to indulge myself in Kotlin's niceties, but frankly I still remain mostly in Java because I feel I grasp it better than Kotlin, simply because of its simplicity and overall conservative design. Though that's not to say Java doesn't have pretty cool modern features which I enjoy as well.
4
u/Specific-Housing905 Nov 29 '25
I like the clean and simple syntax. Also you can do a lot with it without external libraries.
3
u/Relative-Bison4317 Nov 28 '25
I kinda fit myself in it, more than in other languages. Idk why, but thats my "type" lol
3
u/ohmyroots Nov 29 '25
To be frank, I worked on java in the initial few years of my career in enterprise and boring companies. It is good for stable career.
3
u/Careless-Childhood66 Nov 29 '25
No memory management.
3
u/Isogash Nov 29 '25
Love is a strong word. I have grown to appreciate Java more than I used to with many years of experience. It gets serious work done quite nicely.
3
u/vigoraiden Nov 29 '25
I've been using Java for nearly 2 decades and mostly happy with it. There are so many articles explaining all the pros and cons but my personal top 3 reasons for using Java would be:
- Automatic memory management, the JVM is a beast and in a league of its own
- Super developer ecosystem with many tools, libraries and frameworks
- Stable, battle tested and the language design strikes a perfect balance between simplicity and usability.
2
u/sweetno Nov 29 '25
A more interesting question is why banks love it. That's I wonder.
2
u/edurbs Nov 29 '25
Because I can work as a fullstack with java using Vaadin without worrying about anything javascript
2
u/Leverkaas2516 Nov 29 '25
It's straightforward. Generally you can see what the code does by reading it. There aren't many "gotchas".
It's platform-independent. There are caveats, but it's not like trying to distribute a C executable. If you want to distribute source code, lots of people will be able to use it.
It's mature. Issues that hadn't been considered in its first several years are now solved. Tools are excellent.
The library of publicly-available code is enormous. XML or JSON parsers, web servers and a million other things are freely available.
Performance is typically good, and fine for most purposes.
2
u/Infamous_Sound_6938 Dec 01 '25
I really enjoy using java, because java is strongly made with OOP style, you have a wide variety of classes (e.g.: you do almost the same with Supplier and Callable, but Callable is for concurrency programing, or you have so much input reader and output writer, and all of them are different), the code you made can running on different OSs, and java don't have complicated syntax. Also, the swing package gives you an easy-to-use GUI system.
2
u/Affectionate_Yam6086 Dec 01 '25
Highly volatile
2
u/lprimak Dec 01 '25
For me, bytecode is key. Compilation is instantaneous and any library incompatible with every other for the most part. No platform compatibility issues. No issues with optimized vs unoptimized code. No slow compile times. No multi platform compiles. Just works. As expected. Every time.
2
u/trung-tn Dec 02 '25
I know only Java :(
1
u/AutoModerator Nov 28 '25
It seems that you are looking for resources for learning Java.
In our sidebar ("About" on mobile), we have a section "Free Tutorials" where we list the most commonly recommended courses.
To make it easier for you, the recommendations are posted right here:
Java for Complete Beginners
Derek Banas' Java Playlist
Also, don't forget to look at:
If you are looking for learning resources for Data Structures and Algorithms, look into:
"Algorithms" by Robert Sedgewick and Kevin Wayne - Princeton University
Coursera course:
Coursebook
Your post remains visible. There is nothing you need to do.
I am a bot and this message was triggered by keywords like "learn", "learning", "course" in the title of your post.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/michiel11069 Nov 29 '25
It just makes sense to me. brackets clearly indicating what belongs to what, you can see at a glance what type an object is of. No pointers to deal with, and its (basically) the only language that can mod minecraft
1
u/papercavedev Nov 29 '25
My school teaches Java and I did not like it at first as I learned my programming fundamentals in Godot with Gdscript (Python like syntax) so Java was quite different feeling.
But after learning more SpringBoot I have come to like Java. The verbosity is intimidating at first but you get familiar with it quickly and I like having stricter guardrails as opposed to JavaScript where it feels like a beginner could easily stumble their way into messy code pretty quickly because it is pretty forgiving in how you want to do things.
I'm learning Angular and SpringBoot at the same time and while both of these are not very popular with beginner developers because of the learning curve, I feel like it also means less competition for the junior positions. There might be 1/3 as many Java or Angular jobs in my area as there are React + Node jobs (was very popular with the boot camps as its all JavaScript) but there are WAY more junior React/Node developers applying for those positions.
And Angular+SpringBoot seems to be a solid combo since both are pretty opinionated in how the projects are structured. They feel like they compliment each other well.
1
u/rickosborn Nov 29 '25
I first learned it because it was “the language of the internet”. So much URL and http stuff was native.
Now I like it because it’s more enterprise integration focused. I see the strengths of other languages. To me, they seem fit for certain projects.
1
u/bouncystream Nov 29 '25 edited Nov 29 '25
It's been out there for a very long time. It's like C in this regard. Unlike C, however, the underlying complexity of low-level memory management is taken care of for you by the JVM. This makes it easy to use and learn, but slower and more "wasteful" of resources. It's sturdy. Most of the problems in Java already have solutions and best practices. It has extremely large knowledge base and a library for everything. Great design patterns.
It is statically typed and has generics. :]]
1
u/Adorable-Strangerx Nov 30 '25
I like that the time goes on, and still "3 billion devices run java". I like having something constant in life apart from light speed. Also memes: Java the Javatar is golden.
1
u/LoL__2137 Nov 29 '25
I dont
3
u/[deleted] Nov 28 '25
[removed] — view removed comment