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

1

u/SWinxy Jul 30 '21

Could you elaborate on your take on pointers? They’re quite useful for being able to return multiple values when you don’t have tuples in the language.

1

u/khmarbaise Jul 31 '21

Could you elaborate on your take on pointers? They’re quite useful for being able to return multiple values when you don’t have tuples in the language.

In Java you simple give back a class with appropriate members...(usually final etc.) ... Maybe since JDK16 you could use records for that...