I just ran which java command and got the output /usr/bin/java I also executed java -version command and also got version information output. So I believe that there is an actual java executable and not just a placeholder kind of thing. I may have installed it at some point, but I cannot remember doing that. Or does it comes pre-installed with the macOS Mojave? If it doesn't come pre-installed, how do I get rid of it?