But it will still have a place in the backend, writing some Android app and such.
But if you must have Java, https://support.apple.com/en-us/HT204036 covers how to find the latest.
HOWEVER I would forget the legacy version as it's the one the bad folk know most about how to exploit.
I am slightly tech savvy but no expert. I keep reading all this information about how dangerous Java is. So what is the final word? Should I remove Java 100% from my Mac? If so, how do I do this? And what about apps that may need Java, for example I love and fully depend on using CrashPlan. What is the best course of action on my Mac with all things Java?