Unless you run some programs that require Java or access some websites that need Java to function ( very few ) then it is possible that you don’t even need Java and you could uninstall it.