Here's how you can disable Java in Safari in OS X. 1. Open the Safari browser. 2. Go to Preferences. 3. Go to the Security pane. 4. Uncheck the Enable Java option.
For more, see the original article at the link below.
How to disable Java on your Mac | Macworld