You should use the latest version, current is Java 6.
Please check from Sun's website, there is a constraint about 18 months as Ulf said, but I couldn't remember when the 18 months period begin.
To be safe, you should use the latest version.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional