Forums Register Login

Problem in a ridiculous syntax of GENERICS

+Pie Number of slices to send: Send
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 )
Problem.JPG
Problem Statement
[Thumbnail for Problem.JPG]
+Pie Number of slices to send: Send
Every time you till, you lose 30% of your organic matter. But this tiny ad is durable:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 1611 times.
Similar Threads
Anonymous Inner Class
crypto
Question regading Generics
A good question
Question about "exam watch" note in K&B.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:26:39.