How to Install Java in OS X Mavericks

Because Java has been used as an attack vector in the past, Apple has made OS X reasonably aggressive in limiting Java on Macs. As a result, Mavericks does not come with Java preinstalled, and upgraded Macs will remove Java in Mavericks installation process.

If you need it back, check out how to do it.