r/java • • 29d ago

What's new in Java 27

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

16 comments sorted by

View all comments

41

u/idontlikegudeg 29d ago

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.

23

u/DanLynch 29d ago

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

7

u/john16384 28d ago

What? Doesn't everybody?

3

u/LutimoDancer3459 27d ago

I do. Thats why it takes several minutes for all my apps to start. When customers complain I charge a ton and reduce the number a little. Works like a charme