tl;dr - the docs are out of date, and the jdk installer(s) are in flux, but the default definitely isnt 8 on xenial.
See rather long thread Install-jdk.sh failing for openjdk9 and 10 for context about jdks in general; lots of tit-bits of useful information about the current situation.