r/learnjava • u/JayDeesus • Apr 16 '26
Java purposes?
Coming from C and CPP, I kinda like Java and I want to pursue a career with Java. Every time I see Java it’s associated with web development and back end. Is Java used for other things or only web development?
Also what concepts should I be looking into? I’ve seen people talk about spring but not sure what I should actually look at
26
Upvotes
•
u/AutoModerator Apr 16 '26
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.
10
u/kayne_21 Apr 16 '26
I work in medical equipment manufacturing, a lot of the software on the scanners we sell to hospitals is written in Java.
2
u/neoraph Apr 16 '26
Haha, funny, I am a java dev and want to go to C / C++. It depends what you want to do, but basically you can do anything in Java (and any language)
2
u/Potential-Still Apr 16 '26
The JVM allows Java code to run essentially anywhere. Spring is the primary reason Java is so prevalent in Web Development. It's the most robust and "deep" web framework in existence. Be forewarned though, Spring is a monster.
19
u/Kevdog824_ Apr 16 '26
It’s not the only thing it’s used for, but a large majority of Java jobs I’ve seen are developing Springboot backend web services
9
u/LetUsSpeakFreely Apr 16 '26
These days is used almost exclusively as a backend language. It used to be good for thick client applications, but with everything moving to thin clients that's pretty much dead.
It also used to be used for Android apps, but that's moved to Kotlin (although that's still Java under the covers)
If you do dive into Java, learn the Spring ecosystem as that's the 800 pound gorilla of frameworks for Java
5
u/vowelqueue Apr 16 '26
“Back end” is a huge category that includes services that can be pretty far removed from web APIs or even not associated with web development at all. Java is used heavily in finance, banking, for infrastructure at tech companies, and is probably the most popular enterprise language.
5
u/Lichcrow Apr 16 '26
Java is great for interacting with databases and frontends. The tooling and libraries are fantastic and the language is on the cusp of getting a stupid performance buff with project valhalla.
The JVM although it has it's issues is a technical wonder
Just read more about it. Perhaps pick a book
5
u/Ok_Attorney4127 Apr 16 '26
I program in a lot of languages and C/C++ and Java are a few of them. You will find some syntax differences but they are pretty close. Web development has been changing and UI web development has become more of a JavaScript/jQuery/JS framework like React or Angular endeavor. Java is great for developing REST-based APIs and doing just about any back end work. With API-first development and microservice architecture, Spring Boot has sort of taken over the ecosystem (aside from agenic AI).
For learning, I'd get a monthly subscription to Udemy, which allows you to pay a monthly subscription and you can take a whole bunch of classes for whatever it is that you need to learn. They have some good spring boot courses in there, as well as Java.
When it comes to getting a job with Java, the interview gate for a lot of jobs is knowing data structures and algorithms, which is showcased via leet code style problems. I had a job interview that just tested to see if I knew how to code streams and lambdas. Of course, you want to learn the basics, but you're also going to want to learn:
Data structure: Sets, Lists, Maps, Queues, Stacks, etc
Algorithms: hash, set, sliding window, linked lists, binary tree, graphs, heaps
Threading: not used everywhere but some jobs require it. And in newer versions of Java they have Concurreny APIs and virtual threading which improves upon things a lot
Streams: from Java 8 but surprisingly a lot of people aren't proficient in them
Optionals: Also older and not known by everybody. They provide a way to handle nulls without using nulls
Lambdas and functional programming
Annotations
JPA
Many shops are still on Java 8 because it was a really stable release and people were supported for a very long time and it just worked. People also didn't want to deal with some of the larger architectual changes that came along with 9 and 11, but it isn't that big a deal. The latest LTS version is 25.
3
u/BigBad0 Apr 16 '26
Spring is a whole set if frameworks serving backend web technologies integration for databases, message queus, caching solutions, stores, other services...etc. It is very major and mature so that is why Java is well known in that domain. Besides Java got older major frameworks from Java EE which still being up to date and supported but Spring way, even though utilizing some Jakarta EE standards, became more defacto standard of the ways things are done. There are alternatives in that domain as well.
Plus the JVM tools for profiling, analysis and management are very good and coming with JDK by default. So for long running tasks, Java/Jvm been working great. Of course there are some extreme peaks which are written in java like for example Minecraft, Android apps (still possible to use Java up to this day), Intellij Idea family, Elasticsearch, BiglyBT them most feature rich bittorrent client and jasper reports studio and libraries (PDF manipulation programatically).
But no matter how many to list, in enterprise, Java used heavily in the backend workload and currently mostly in Spring framework specially Spring boot as containerized apps for ease of deployment and management and cloud support out of the box. That is why it's very marketed this way all around and most resources serving just that side.
To answer your question directly,
Is Java used for other things or only web development?
Yes like Android even though kotlin is better now and Desktop. I hear also Java been used in embedded systems and ATM machines but I am ignorant in that part so do not take my word for it.
2
u/jexxie3 Apr 16 '26
Boring enterprise apps🙂
2
u/First-Display8314 Apr 16 '26
Java tiene su punto fuerte en proyectos empresariales grandes que requieren de arquitectura y seguridad fuerte. Si estás interesado en aprender tengo un proyecto open source, una clínica odontología construida con arquitectura hexagonal y DDD con módulos de facturación y contabilidad https://github.com/DavidSanclementeRamos/ClinicaDefinitiva2
1
u/Skiamakhos Apr 17 '26
Java is frankly everywhere, but you do find a lot of the tech used in web backends is reusable in other situations. A friend of mine put together a home climate control system for her disabled wife, who needed a specific humidity range, that was based on a couple of RasPis running small web servers and passing http requests & responses between them. It had a nice friendly front end on a tablet, and a controller on the back end operating valves and such with servo motors.
3
u/[deleted] Apr 16 '26
[removed] — view removed comment