Prithvi Sehgal wrote:
So i am not the only one in this league. Glad you joined me as a first timer also Rajeev.
Rajeev, can you explain me what the above statement really means? It's such a weird syntax.
Best Regards
Hi Prithvi,
It is same like
Think about List<E> list = new ArrayList<E>();
Here "E" can be anything,
String, or Integer or even List<Integer>
The tricky part is what ever E is, the right hand side has to be ArrayList<E>(), not ArrayList<subtype of E>(), not ArrayList<supertype of E>
If we define E as Integer
Now let us change "E" to "List<Integer>"
Here you go!
Since "E" is "List<Integer>" here, you cannot replace right hand side with anything other than "E" which is "List<Integer>"
Hense the following are invalid:
SCJP6, SCWCD5, OCP-JBCD5, OCE-JWSD6 OCE-JPAD6 , OCM-JEA5 1,OCM-JEA5 2,3,OCJP8 - Brainbench certifications: J2EE, Java2, Java2-NonGUI, JSP, SQL2000 Admin, SQL2000 Programming , Brainbench certified Java Programmer, Computer Programmer, Web Developer, Database Administrator