Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in a ridiculous syntax of GENERICS

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
[Thumbnail for Problem.JPG]
Problem Statement
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Duplicate topic....

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


Henry
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic