K. Tsang wrote:In fact the SCWCD5 uses J2EE1.4 API mentioned in the SCWCD links
I meant to say OCPJWCD 5 - it uses JEE 5 (actual name of the exam is 'Oracle Certified Professional, Java EE 5 Web Component Developer').
Frankly speaking, regarding SCWCD 5, I just followed Head First Servlets & JSP book - as it covered everything on the exam (I didn't worried about JEE version, but as SCWCD links suggest, it might be J2EE 1.4)
This question has been asked several times and the answer to SCWCD5 was always: it is based on JEE1.4, however if we look well on the oracle page we will see that the (1Z0-858 OCP Java EE 5 Web Component Developer) exam is based on JEE5.
You could ask yourself: does that include Autoboxing? The question can be answered by looking at the java technologies behind EE5 (look here)
EE5 is based on Servlet 2.5 (and JSP2.1, JSTL1.2 ....), and inside the Servlet 2.5 specs you will find the answer:
SRV.1.2 What is a Servlet Container? ....
J2SE 5.0 is the minimum version of the underlying Java platform with which
servlet containers must be built.
J2SE 5.0 contains autoboxing, generics, enhanched for loops etc.
Conclusion: 1Z0-858 had an EE update compared to the older SCWCD5 exam and is therefore not the same. The Servlet 2.4 specs did not require J2SE 5.0 as a base version, but also didn't exclude it, so I guess there won't be many differences....
I think to make this a bit clearer, first there are 2 things: 1) the exam and 2) the Java EE 5 platform.
First the SCWCD5 exam is testing you the J2EE 1.4 API.
The Java EE 5 platform requires Java SE 5 (which includes autoboxing, generics, etc).
Therefore, if you are asking about your code, then it works in Java EE 5. However, if you got a question regarding autoboxing in the exam (I doubt), it should produce runtime error or compiling issues.