Hi G0Z_049,
I am Dave, an Independent Advisor, I will help you with this.
Yes, Java and Oracle are perfectly safe, they are usually installed automatically when you install software that is programmed in Java and so, the runtime needs to be installed.
Are you experiencing any difficulty with Java or Oracle on your system?