Yeah. I'd like to know that too.
I'm running openjdk-12 but my book is for java (1.)8. Why is Java lagging behind so much or is there just so little change?
Anyhow I have openjdk-8 installed separately for college and just experiment with what works between versions.