And? You put in your cv you know Java, and solved. I mean, if you have experience with a few mainstream languages, it should be no problem to handle yet another one. I have done this several times. Yes, I lie in my cv, but that doesn’t mean I cannot work with yet another unknown programming language and be productive after a few weeks. More often than not, the real issue is to get to know the business logic in a new job, that may take a few months (more than enough time to get up to speed with a new language).
Notice I said “mainstream” languages. This means stuff like Java, Python, PHP, Ruby, Go, TS, etc. Now, stuff like Lisp, Haskell, Clojure, ok, that’s different enough.