Paul Clapham wrote:
As declared, Movie is a class with a type parameter. So if something is declared as a Movie<Bollywood>, that provides a value for the type parameter. However if something is only declared as a Movie, you don't know what the value of the type parameter might be. It could be a Movie<Western> or a Movie<ChickFlick> or anything else, so you can't make any assumption about what the value of the type parameter might be.
Kiley smith wrote:Hi Darryl and Mike,
Darryl's solution works, thank you. Could some help me understand why my version of this does not work:
My line "myComputerOrder.add(new ComputerOrder(1));" is wanting an IComputerOrder object. Can someone explain this to me? I really want to understand this. Thank you.
Paul Clapham wrote:You have an E parameter, but you can't call its getE method because that's a method of Movie<E>, not a method of E.
It's also true that you know E extends Movie, because your class declaration says that, but Movie and Movie<E> aren't the same thing. So you don't know that your E parameter is in fact a Movie<E> reference.
So I suggest you change the class declaration thusly:
Note: I haven't tested this so I may have misdiagnosed the problem. There's plenty of scope for that when you're dealing with Generics!
Raminder Singh wrote:Hi,
I have just seen fee for SCDJWS(CX-310-230) at http://in.sun.com/training/catalog/courses/CX-310-230.xml and it lists around Rs.17,550.00 (ex. VAT) .
Is this correct one? Normally Oracle Exams are in the range of $125 .. now as Sun is under Oracle, do we expect decrease in the Java's certification fees in coming days?
The following policy expression requires:
• Transport or message-level security. Additionally there is a policy assertion informing clients that the service performs logging of some kind. This policy assertion may be completely ignored, as specified by the wsp:Ignorable attribute.