• Post Reply 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 ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

ch7, self test, q14, and q16

Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

in question 7.14 page 632
A) <? extends CharSequence> makes it not correct because, It will return something "read only"

Is that Correct??
7.16 on page 634

I am confused about answer C, why it is not correct ?, who said that
the return type List<? super E>, will be evaluated to List<Integer> ..??,

I suppose the compiler will accept to return List<Number>
because Number is supertype of Integer and does not break the decleration <E extends Number>

What I missed ..???

I will go for the exam next week, and I am not scared, which scares me !!!
    Bookmark Topic Watch Topic
  • New Topic