wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Generics Error" Watch "Generics Error" New topic
Author

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
Greenhorn

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
 
jQuery in Action, 2nd edition
 
subject: Generics Error
 
Similar Threads
Comparable
compareing two values
probem with comparable interface
Generics SCJP 1.5
HashSet