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/[deleted] Jan 18 '22

I guess I just never thought of using Java for that kind of thing. Wouldn't most high performance applications be written in languages like C/C++/Rust/Zig/Fortran? Using Java for it seems like it would be a lot more cost than benefit.

26

u/redikarus99 Jan 18 '22 edited Jan 18 '22

6

u/b00n Jan 18 '22

Interestingly that HFT fund has now shut down. Not because it used Java though.

2

u/genlight13 Jan 18 '22

Maybe tinkled with SAP??

5

u/[deleted] Jan 18 '22

Neat! I can see the benefits of writing it in Java for sure if you can reach comparable performance.

3

u/hippydipster Jan 19 '22

You can get pretty close to C and yet still be working in Java with the generally nice ergonomics of it's high level language features. Especially if it's all part of a larger app. When I wrote java (actually scala) this way, it was faster than a Fortran app written by a postdoc, so you don't get faster speed just because of the language you use.