Nice interview question

Explain about Java, How many versions are available? Basic program to print n natural numbers and prime numbers