File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

Problem in a ridiculous syntax of GENERICS

 
Harshdeep Singh Saluja
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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]
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic