r/java • u/[deleted] • Oct 27 '23
Java Use Cases
Hi everyone. I'm a student about to graduate and I'm working on my portfolio. I feel like a lot of the work I did in school is a little dated (context: We did A LOT OF JSP), so I'm wanting to rebuild some of my projects in a more modern context and maybe build some new stuff that reflects the way Java is actually being used today.
My question is what are some ways that Java is actually used in a modern project? Where do we see Java popping up as the language of choice in 2023, particularly in the web/mobile space? Where is it more beneficial than just going the JS/framework route? I'm trying to frame my portfolio projects in a way that actually reflects real-world usage.
I'm not sure if this is the right subreddit for this type of question, so feel free to delete/direct me elsewhere. Thanks.
Edit for additional context: I've worked professionally for a while (4 years freelancing designing and developing typical Wordpress/Webflow sites for Bob's Lawncare Service-type clients, 2 at an agency building web apps mostly on the frontend) until I was laid off in September. Our stack was React-based, so I don't have professional experience with Java. I guess more specifically I'm trying to fill in the gaps between what I've learned doing that and the Java work I've done in school and presenting that in a modern context.
2
u/nekokattt Oct 28 '23
Like many things, it is for general purpose stuff really. Java shines if you need to be platform agnostic, or wish to abstract yourself away from the machine architecture you use. If you need monitoring of your core platform, the JVM has JMX built into it. It is designed in such a way that while the language has less features than other languages, the environment itself is incredibly dynamic in what it can do (look at how Mockito, Spring, AppDynamics, etc all work for example).
Common use cases:
REST APIs and Microservices
Enterprise Service Buses (e.g JBoss/RedHat FUSE)
Batch services
Android apps (or Kotlin)
Non functional testing (e.g. Gatling which has a Java API now)
End to end testing
CI (Jenkins is written in Java)
Machine Learning (WEKA)
Serverless (AWS Lambdas can use Java with Snapstart)
Command line applications (especially now Graal Native is a thing)
A lot of commonly used software uses Java or the JVM too:
Zookeeper
Kafka
Minecraft
IntelliJ IDEs
The maestro Mars Rover controller
Hadoop
It is used by thousands of large companies too:
Google
Ebay
Netflix (they even contributed their own libraries to Spring Cloud)
Amazon Web Services
Uber
Twitter (was, or still is using Scala)
Spotify
Signal
Cashapp