By Alvin Alexander. Last updated: July 21, 2016
Mac Java FAQ: Where is Java installed on my Mac OS X system?
On Mac OS X 10.10 (Yosemite), you can find Java installations under this directory:
/Library/Java/JavaVirtualMachines
I currently have versions of Java 7 and Java 8 installed under that directory.
On much older versions of Mac OS X — like 10.4 — Java versions used to be installed here:
/System/Library/Frameworks/JavaVM.framework/Versions