You can read about how to disable Java on your Mac here.
Adobe notes that the vulnerability has been actively exploited on devices running Windows 10 and earlier with Flash Player version 188.8.131.526 and earlier.Locate these two folders and delete them: ~/Library/Preferences/Macromedia/Flash\ Player ~/Library/Caches/Adobe/Flash\ Player What if having removed Flash you decide you can’t live without it? But there may be things that stop working that you do need including some web apps.Or perhaps you are being badgered by the "Blocked Plug-in" reminders when you are browsing the web and want to watch the videos or play the games that require the plug in. If you can live without these apps then not having Flash running on your Mac may protect you from malware, and you may also benefit because your browser will not be suffering from crashes due to faults in Flash.These can be found in the home directory’s Library folder. You will see the download appear in your Downloads folder 6. You know that this is a legitimate download from Adobe. However, i Player has now moved away from Flash to HTML5 so it may only be a matter of time before the others catch up. There was a time when lots of websites relied on Flash, but now-a-days sites are gravitating towards HTML5.Go to Finder, click Go in the menu and hold down Alt (or Option) to make the Library folder appear as a drop-down menu. Click on Download Flash This will take you to: https://get2.adobe.com/flashplayer/ which is a legitimate site – if you ever get taken to a site that is clearly not Adobe be very cautious, it is likely you are being taken to a malicious site 3. While blocking Flash might mean However you are being greeted by fewer adverts, you will no doubt have noticed that All4 (previously 4OD) and other on demand services no longer work. One of the main users of Flash was You Tube, but now Google's You Tube defaults to HTML5. If you aren't watching 4OD and other sites that require Flash on the Mac, you may find you can survive without it.
Launch the uninstaller from your Downloads folder on your Mac. Enter your admin password and close all your browsers. You will have to close any programs that also require Flash before you can install the update, click Close All 12. You may also see the alert: "Blocked Plug-in" when attempting to view Flash content in Safari. By stopping older versions of Flash from running Apple is able to guard against security vulnerabilities that could allow malware to be delivered to your Mac via Flash Player.