Remember that Martin Odersky was frustrated by how slowly Java was evolving. He did a lot of work on generics but that had to wait a couple of versions.
So he developed Scala, which had generics right from the beginning, and also functional syntax. Now Java has lambdas but I don’t think that really qualifies as functional.
I looked at Kotlin and I mostly see them taking ideas from Scala.