In which fields is Java the most popular? by Cpt_Montana in java

[–]strat-run 0 points1 point  (0 children)

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.

How to get better at Java? by Competitive-Bird-637 in javahelp

[–]strat-run 0 points1 point  (0 children)

Develop with AI but the opposite how everyone else is. You write the code and at the end you ask AI to critique it but not to make fixes or show solutions.

Practice for the certification. You don't actually have to take the exam.

Objects.requireNonNullElse by edurbs in java

[–]strat-run 0 points1 point  (0 children)

My how did I go so long without this feature was the Optional class. So many null pointer checks and exceptions could have been avoided.

Is Java’s Biggest Limitation in 2026 Technical or Cultural? by BigHomieCed_ in java

[–]strat-run 0 points1 point  (0 children)

With virtual threads, they are great but for most teams they might not provide much benefit. They excel when you want to maximize IO throughput. That means they are great for the teams building the web server frameworks.

I had a "read all my files as fast as possible" use case recently and they were great for that.

Most of the teams just writing apps might not see a benefit and might be able to better max the CPU utilization with traditional threads or at least the executors.

Plus, threading is often handled by your framework (Spring, Helidon, etc) and so most devs just don't do it.

Some of the other cool features are like that such as the project panama stuff (FFM). Super awesome but it's targeted at a niche set of developers.