my dog learned polymorphism
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Generics Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Generics Error" Watch "Generics Error" New topic

Generics Error

Saibabaa Pragada
Ranch Hand

Joined: Oct 24, 2010
Posts: 162
Hi, This is from whizlabs. Please let me know why I am getting following errors.
AmanZeeK Verma

Joined: Dec 06, 2010
Posts: 29

Please cross check the return also.. its always a T, so needs to be handled that way e.g int x3 can be changed to Double x3.

Just use various permutations on return type and argument type, and analyse the issue. Hope that helps

Aman ZeeK Verma
I agree. Here's the link:
subject: Generics Error
It's not a secret anymore!