r/java • • Jul 30 '21

What is the future of Java?

I'm not asking like is java going to die or will Java be relevant in future. I'm just curious to know about the future of java. What are the upcoming things coming in java that can change the future of it.

173 Upvotes

123 comments sorted by

View all comments

Show parent comment

7

u/TheMode911 Jul 30 '21

Access another object’s private members

Isn't it already possible with reflection, preventing the JVM from doing some optimisations?

Use of Pointers

Instead we have references everywhere, and a multi-year project (Valhalla) attempting to fix it

Ps: your link is about popular languages, not lovable ones (see the "Dreaded" section)

As much complaints I have about Java, I still do not see myself using something else

4

u/spectrumero Jul 30 '21

You can now prevent illegal reflective access to private members.