java is on a great trajectory now. it gets big updates. they know where they are missing on features. even without nullable types you have optional. it’s a great language for any project.
The pain with allocation is temporary. It is one of the candidates to become value types.