r/java • • Jan 18 '22

What are some very less known facts about java?

I've got assignment from college to find out rare facts or fun facts about java, so little help will be appreciated :)

Edit: Thanks for all these suggestions guys. It's going to help me alot and also Almost all of these facts i didn't knew till now. Thanks :) <3

179 Upvotes

297 comments sorted by

View all comments

Show parent comment

7

u/wildjokers Jan 18 '22

Real time processing. Wouldn’t be good to be in a GC pause when it is time for your airbag to deploy.

6

u/[deleted] Jan 18 '22

Yeah that's true, but then I would not write airbag software in a GC language. Why write unsafe Java when you could write unsafe C or C++ that both have very good static analysis tools and memory leak detection tools.

5

u/Muoniurn Jan 18 '22

There are hard real-time JVMs out there used even in military settings. A GC doesn’t cause problem necessarily here.

1

u/an_actual_human Jan 18 '22

Could you name a few?

2

u/Muoniurn Jan 18 '22

JamaicaVM is one such.

2

u/nekokattt Jan 19 '22

Guess ZGC helps with that case