[#1800] Update javadoc to link to Java8
[#1800] Add example for java8