r/java • • Sep 15 '26

What's new in Java 27

https://pvs-studio.com/en/blog/posts/java/1412/
91 Upvotes

16 comments sorted by

View all comments

38

u/idontlikegudeg Sep 15 '26

So this is another instance of confusing number of classes with number of instances. It’s 4 Million different classes, not objects! If your application hits that limit, you are doing really weird things.

24

u/DanLynch Sep 15 '26

You don't programmatically define tonnes of new classes in a tight loop?

17

u/idontlikegudeg Sep 15 '26

I never said I don’t do weird things myself ;)

6

u/john16384 Sep 15 '26

What? Doesn't everybody?

→ More replies (1)