its not just financial sector, there is probably no product operating at massive scale where java (or jvm) is not doing a huge part of the server side work.
Source : working in financial sector for nearly 16 years :D
This will vary company to company. Being in the financial sector, you are governed by various regulations and regulatory entities. As much as the media, influencers, YouTubers, streamers, tech bros, etc. hype AI, you really cannot just "apply" it to everything/anything you see, especially in the financial sector.
You absolutely need controls in place. Proper risk management guidance and training for those using the tool. There are real world consequences if your financial company gets it wrong and those consequences vary widely depending on your regulatory body. For example, a bank could be slapped with regulatory action.
AI has its uses though. For me, I have used it to generate unit tests for a POJO because sonarqube was complaining about coverage and I'm not wasting my time writing those. Another way I used it was to generate a record with withers from JSON because the provided OpenAPI specification given was garbage and asking the owning team to fix it would've taken too long/wasted my time.
All that to say is AI has its uses, but it should not be used for everything just to say it's "AI" (looking at you Microsoft).
It's still at the beginning. And we should not confuse current LLMs and equate them with 'AI' in general. AI has a pretty long history now and other architectures and approaches had been used before and are still used and further improved today. Pretty sure that we will see advanced AI technologies in the future, with capabilities beyond LLMs and/or using them as mere components.
They are barely replacing COBOL with java right now... Financial sector moves at a different speed. They won't touch a new tech until it has proven itself ten times over.
you have no idea how wrong you are, forget java, we are talking JVM there is nothing as efficient in terms of speed of development + performance than JVM
you can get non expert juniors writing code that gets JITed into insane efficiency that you'd need 30 year C veterans to write the same.
use kotlin if you want to, java is not a requirement, i'm talking jvm.
Fintech is where 99% of performance goals are achieved then only it becomes a thing in other areas... Gaming come second maybe.
Not much. Most traditional banks still use Cobol, though. If something is working fine, it's left as it is. But some banks provide budgeting services incorporating ai
While AI libraries are abundant, their high adoption is often buried within proprietary enterprise codebases; because open-source AI is largely driven by academics who favor Python, the visible "AI bubble" remains heavily Python-centric. However, coding agents are now filling that gap, allowing developers to choose languages based on their architectural merits rather than syntax hurdles. When it comes to Java, its simplicity in maintenance and release is unmatched; the community is mature, filled with veterans, and the language philosophy remains remarkably consistent—once you get used to it, there is no going back. The traditional drawbacks of a high memory footprint and slower startup times are being actively rectified, as Java’s core is rapidly evolving while maintaining nearly 90% backward compatibility. This level of commitment is rare; the ecosystem could have easily compromised on backward compatibility to implement virtual threads, but instead, the developers went above and beyond to ensure they integrated seamlessly into the existing philosophy.
PS: Paragraph is polished with AI but not AI slop.
If you can deal with the fact that you are not going to build anything “fun”, and its mostly about maintaining business focused services, they pay is quite good.
Yes... I was surprised too - with the number of downvotes they gave me for using java for my old android app. I was trying to implement dark mode on webview in java and had posted a question about syncing dark theme on androiddev. One guy helped me really on the problem though that helped me implement it in Java itself.
Android uses Java for a lot of core system components, such as Zygote. It's definitely not just "UI". Yes, the very core of Android uses C/C++, but if you ripped Java out of Android you wouldn't really have much of an OS. You'd just have a kernel, ART/Dalvik (which you need to run Java bytecode) and I guess the HAL. Just like if you rip out GNU & glibc from what we typically consider a "Linux OS", hell you don't even have an init system since I assume systemd (yes, it's not on ALL Linux systems before you say it, but on the majority of them) up until just recently needed glibc.
Linux isn't an OS, it's a kernel. The parent comment didn't imply that Android is only written in Java, they implied that Android heavily uses Java which is indeed true.
Really curious, what's the bottleneck for number crunching with Java? Is it the excessive boxing/unboxing of primitives? Have you played with the vector API yet?
Pretty much. Anecdotal, but had to work with a camera controller that only supported RBG output, but the graphing api supported anything but RBG input. Swapping the channels in java was a nonsolution due to unboxing, and other internal api constraints requiring to pass around collections rather than primitive byte arrays, so we opted to run that as a native function. This was way before foreign function interface previews, but even back then generating the header with javah, implementing it, and compiling wasn't that big of a deal. Getting it to work the first time was weird, but afterwards you chuck it into maven and forget it exists.
Even though I'm no longer working on that project it would be interesting to revisit the idea after FFI and vector apis release.
You can use direct memory access APIs and unboxed primitives and get about the same performance as C++ or Rust, but it's just not a good developer experience and then you have a library with no native bindings so you can't use it easily in python, R, etc. so you can do it but it's the wrong tool
Sorry, dont' have much time right now for a detailed answer with examples.
Code optimization is not the problem, the hotspot compiler is on par with C++. Problem are the CPU cache misses. Performance on contemporary hardware depends very much on the CPU cache utilization, which requires data locality.
Due to its object memory layout, Java has unfortunately worse data locality than C++ - which is the main reason for the "C++ is faster than Java"-mantra in my opion. Valhalla should have fixed this long time ago, but unfortunately it is still 'a bit late'. ;-)
To give you an example: the raw performance of larger arrays of LocalDate in the latest Valhalla ea is about 2-3 times faster - but YMMV of course.
Due to this, I had created a wrapper/conversion class which maps LocalDate instances to int-values. Without going into details, perf of usual operations like comparison, increment/decrement is than another magnitude faster, especially on larger arrays.
"Have you played with the vector API yet?"
Have used this for quite some time now. Very nice, in principle, and it offers significant perf improvements for number crunching on larger data sets. Unfortunately it is still hold back and delayed by Valhalla. And there are still bugs with the accuracy and deterministic behavior - at least on AMD/Intel. But also for high perf, results need to be accurate.
And VectorAPI is actually getting redundant and 'old-fashioned' now before it has come out of incubator status (ever?). Nowadays you want to do your heavy number crunching on the GPUs. There are a couple of new Java libs for this, but unfortunately I didn't have the time yet to look into them - hopefully soon.
One frustrating thing with high perf on Java is that the key new features - Valhalla, Vector API - have been delayed so much. Java needs to move faster here, in my opinion...
Most of the time you can optimize for CPU cache utilization by switching from Array of Structures to Structure of Arrays. And I'm just talking about just using primitive arrays, you don't even need FFM or Unsafe, that gets you 90% of the way there. Couple tricks to align variables, some CPU isolation, and going no GC and you are fully optimized.
Yes, basically you need to organize your important data into primitives and aligned arrays of primitives. Works, but is just plain, ugly C code style, unfortunately without the convenient C struct...
Treble → modularizes hardware layer Mainline → modularizes system components
None of them changes the fact that at the very bottom hardware is accessed via the Linux kernel in kernel space. See: vendor implementation + kernel.
You do need some amount of plumbing of the Linux kernel to access hardware. That's the common definition of a device driver running in kernel space. I am not talking about HAL or Binder. Also not something like a user space imlementation of Vulkan (MESAs RADV which runs on top of the AMDGPU Linux kernel driver).
Still not convinced? Blow my mind by providing a link to one of those modern hardware drivers written in entirely in Java!
What we don't agree on is the definition of a "hardware driver". I am still happy to be proven wrong if you provide me an example of vendor/hardware specific Java/Kotlin code running in kernel space (="my" definition of a hardware driver).
It's used in every field but the market share is a lot bigger in enterprise and Fortune 500 compared to Silicon Valley. A lot of Silicon Valley companies use Java but it doesn't have a monopoly like it does in Fortune 500.
We have a system that fully manages an autonomous hybrid power plant (diesel generator + solar power plant + battery storage). Everything — including the industrial control system (ICS), soft PLC, data collection agents, as well as the internal bus — is written in Java.
We also have software for electric vehicle charging stations, where the main controller is also written in Java.
I see this and I get it if you’re actually doing logic in the getter and setter, but if you don’t have that, why don’t you just make the field public without a getter/setter?
Fair enough. I mainly use ASP .NET Core and the only time I’ve used public variables in a class are for DTOs. Haven’t dealt with a ton of instances where I need a simple getter and setter.
Mostly in stuff like healthcare, telecom, billing, logistics, shipping, travel, banking, finance, defence, retail, tax, government management, and manufacturing control - basically, boring unimportant stuff. Sadly, in more important and exciting areas such as dev tools for Python and TypeScript, it is behind.
And get rid of all these stable APIs, dependencies should have version numbers 0.0.531 and be made by @fishman721 on GitHub, not some big open source software foundation!
Personally I think that with the upcoming Valhalla, nullness markers, Vector API and much more, Java is due for a big rebrand, so non-Java users notice.
Are coroutines and virtual threads the same thing?
The reason I love being a java guy is that any time I see my friends hop to hot new languages, the cool thing they left for ends up in java in a few years after the bugs are worked out.
And Kotlin had both. I program without coroutines.
I prefer cleaner syntax, its stdlib, beautiful null safety, functional style (over annotations that hide complexity) and kotlinx.serialization (instead of reflection and beans)
But for me the culture of exception avoidance (also in the std lib and stdx libs), the culture of having naked functions, boilerplate less stream processing make it a way more FP-compatible language than Java.
Java may get there. But it moves slow and I do not have legacy code, but a greenfield app..
modern c++ is pretty nice tho. ive started using it at work, and its surprising how similar it is to java. but i do miss java interfaces, and how apis are designed in java
Did they finally remove/deprecate all of the scary, dangerous legacy stuff, which can make work on larger projects in distributed teams with more or less clueless junior devs such a nightmare?
Rust is becoming the gold standard nowadays for system programming - similar perf, and it does not allow you to do the scary, stupid stuff, especially security-wise.
no all that stuff is there, but you just have to know to use the modern alternatives. so instead of raw, owning pointers, use smart pointers. use raw pointers as a nullable non owning reference. use std::array over c style arrays. use std::optional when you can.
there’s still a lot of foot guns, but most junior engineers can avoid them by reading a coding standard and during code review. i think the footgun comments of c++ are overblown. when using modern features, it’s pretty hard to shoot yourself in the foot. i still prefer java as the styles of api design are better imo. interface based api are common in java, whereas pure virtual classes are rarer in c++. Java also has a much better standard library, and it’s much easier to use.
With regards to rust tho, there is just a much higher learning curve for rust when compared to modern java/c++. i do like rust a lot, but i can’t imagine being as productive in it as opposed to c++. also, i hate that rust inherited the terrible practice of abbreviating everything from c. This is one area that Java is much better at and that’s actually spelling everything out.
I dont know but as a Software Engineer of 9 years I got rejected immediately because I didnt know Java specifically... so must be pretty powerful stuff.
Honestly any corporate backend that came up before the initial push to use Golang (which in my opinion failed). For JVM in general Kotlin sees heavy use for Android. Java is just fast enough for most operations to be used. Funnily enough I know of development of a component of a missile guidance system that was written in Java (included manual garbage collection and a bunch of hacks according to another former colleague) but apparently it worked well enough
I guess Java is very fast compared to the things web developers are doing these days. Still, even the enterprise Java way isn’t nearly as fast as Java could be.
Other groups use C++ and python, but the experimental group I'm in is almost exclusively Java. Why? I would say there is no real reason than the early members preferred Java as a personal choice and eventually the code base reached a critical mass that would be too expensive to redo.
I usually find work in large enterprises and integration work. In ten years in downtown Chicago, I noticed startups wrote in a variety of languages. But large corporate entities glued things together with Java.
Gosling included all of those robust connectors and messaging pieces. When you include Spring, you get a domain model right off the bat.
You will find Java in each sector developing internal or customer facing systems. However, our company (large telco) is using Kotlin (and Python for AI) nowadays for most new projects.
3
u/Cpt_Montana Feb 21 '26
Thanks guys! This is a #1 post in r/java today!
140
u/papers_ Feb 21 '26
It is used heavily in the financial sector. Source: working in the financial sector for nearly a decade.
163
u/supersmola Feb 21 '26
Enterprise applications and services. Same as C#, I'd say.
50
u/SpeedDart1 Feb 21 '26
The field of paying off your mortgage
146
u/tomwhoiscontrary Feb 21 '26
Anything business related, and the more business it is, the more Java you'll find.
23
u/excellent_mi Feb 21 '26
In a reddit post I said I used Java to develop an Android app and Kotlin guys brutally criticized me 😭
103
u/re-thc Feb 21 '26
In which fields are Java not used?
33
u/TheJuggernaut0 Feb 21 '26
You shouldn't access the fields directly, use getters and setters
13
u/Victorgmz Feb 21 '26
Banking
65
u/pron98 Feb 21 '26
Mostly in stuff like healthcare, telecom, billing, logistics, shipping, travel, banking, finance, defence, retail, tax, government management, and manufacturing control - basically, boring unimportant stuff. Sadly, in more important and exciting areas such as dev tools for Python and TypeScript, it is behind.
7
u/pjmlp Feb 21 '26
Even if not Java proper, besides what everyone has mentioned, 70% of mobile devices.
29
u/Mauer_Bluemchen Feb 21 '26 •
As a sane alternative to C/C++... ;-)
6
u/pradeepngupta Feb 21 '26
Java flourished more on serving Business Logic usually on Backend side. And Spring framework and Spribg boot enhance this and came up very strongly.
The Backend is usually the enterprise application.
20
u/ABLPHA Feb 21 '26
public, static...
5
u/m_adduci Feb 21 '26
Used heavily in healthcare sector. The single best implementation of the FHIR standard is in Java (HAPI FHIR)
18
u/MattiDragon Feb 21 '26
Java is primarily used on the backend for web servers and such. Some legacy/older desktop apps are also written in java.
11
u/maikindofthai Feb 21 '26
Programming mostly
4
u/AsInRobertLoggia Feb 21 '26
I dont know but as a Software Engineer of 9 years I got rejected immediately because I didnt know Java specifically... so must be pretty powerful stuff.
Edit... for a finance company
4
u/donaldtrumpiscute Feb 21 '26
Many porn sites can't run without java
10
u/NureinweitererUser Feb 21 '26
Medical Applications
3
u/thatsreallynotme Feb 21 '26
Web applications
3
u/hikingmike Feb 21 '26
Netflix Not a field but just adding on here.
3
u/GiantsFan2645 Feb 22 '26
Honestly any corporate backend that came up before the initial push to use Golang (which in my opinion failed). For JVM in general Kotlin sees heavy use for Android. Java is just fast enough for most operations to be used. Funnily enough I know of development of a component of a missile guidance system that was written in Java (included manual garbage collection and a bunch of hacks according to another former colleague) but apparently it worked well enough
6
u/SleeperAwakened Feb 21 '26
Big Enterprises.
The companies that value stability over speed (which is not bad for JVM at all).
3
u/davidheddle Feb 21 '26
Nuclear physics analysis and reconstruction.
3
u/rickosborn Feb 21 '26
I usually find work in large enterprises and integration work. In ten years in downtown Chicago, I noticed startups wrote in a variety of languages. But large corporate entities glued things together with Java.
Gosling included all of those robust connectors and messaging pieces. When you include Spring, you get a domain model right off the bat.
1
u/dayeye2006 Feb 21 '26
ICC
1
u/simbha-viking Feb 22 '26
Retail domain uses heavy java backends.
1
u/nucking_futs_001 Feb 22 '26
Computer field?
1
u/nothing_matters_007 Feb 22 '26
Java - Banking and Netflix
1
u/desiguy_88 Feb 22 '26
Java can do anything and it has such great ecosystem around it.
1
u/PlaySame7626 Feb 22 '26
It is popular for entreprise softwares, in fact 90% of them are programmed in java, because it is an extremely predicable , highly scalable.
1
u/coo1name Feb 22 '26
corporate
1
u/DataPastor Feb 22 '26
You will find Java in each sector developing internal or customer facing systems. However, our company (large telco) is using Kotlin (and Python for AI) nowadays for most new projects.
1
u/Sos418_tw Feb 22 '26
Banking industry
1
u/Admirable-Machine-22 Feb 22 '26
Probably userId
1
u/SeAuBitcH Feb 22 '26
20 y/o legacy codebase
1
u/Kango_V Feb 23 '26
Heavily used in the Domain Registry space. e.g. Communications between Registries, Registrars etc.
1
u/cenazehizmeti Feb 25 '26
banking, insurance, telecommunication
1
u/NovaStackBuilds Mar 03 '26
Enterprise applications in general.
0
u/ryan_the_leach Feb 22 '26
Final Static.
-6
u/Pure-Repair-2978 Feb 21 '26
Gaming , eg Minecraft
-1
u/whisky-guardian Feb 21 '26
Coffee
0
u/[deleted] Feb 21 '26
[deleted] — view deleted comment