wood burning stoves 2.0*
The moose likes Book Reviews and the fly likes Problem in a ridiculous syntax of GENERICS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Books » Book Reviews
Reply locked New topic
Author

Problem in a ridiculous syntax of GENERICS

Harshdeep Singh Saluja
Greenhorn

Joined: Oct 03, 2009
Posts: 2
Hello,

I would like to bring to your notice that the information given on page 629 in book Sun Certified Programmer For Java 6 Study Guide.
In the first 'exam watch' given on the page under the heading "GENERIC DECLERATIONS".
It states that no two 'X' are related but after going through it many times, I found that 'X' (constructor argument identifier) is either same as class name 'X' so that it is a refrence to the object of that class or it ought to be same as 'Generic type declaration'.
In no way it can be different from either of the two options mentioned above.

If I am wrong please can you provide me with code which proves your point that all X are independent.


Thanking You
Harshdeep Singh Saluja
(will be a certified programmer soon )



[Thumbnail for Problem.JPG]

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18553
    
  40

Duplicate topic....

http://www.coderanch.com/t/466890/Programmer-Certification-SCJP/certification/Ridiculous-Syntax-JAVA-generics


Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
 
subject: Problem in a ridiculous syntax of GENERICS
 
Similar Threads
Anonymous Inner Class
Ridiculous Syntax in JAVA generics
crypto
A good question
Question regading Generics