File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Java 8 in Action this week in the Java 8 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generics Error
 
Similar Threads
probem with comparable interface
compareing two values
Comparable
HashSet
Generics SCJP 1.5