Java location in Mac OS X


We all know where to look for installed Java on Windows be it any version of Operating system (program files), but to know where the Java JRE is installed on Mac OS X (macOS) it's different as the location keeps changing with the version of Mac OS X you are working on (be it Lion, Mavericks or Yosemite)

Location where Java is installed on Mavericks: 10.9

/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/

Location where Java is installed on Yosemite: 10.10

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/

Location where Java is installed on El Capitan: 10.11.6

/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/