File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Problem in a ridiculous syntax of GENERICS

Harshdeep Singh Saluja

Joined: Oct 03, 2009
Posts: 2

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

Joined: Sep 28, 2004
Posts: 20521

Duplicate topic....


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
I agree. Here's the link:
subject: Problem in a ridiculous syntax of GENERICS
It's not a secret anymore!