list - Java Generics - Get and Put Principle exceptions -


i'm studying generics programming class, , while reading past examination papers, came across question:

give example of wildcard definition might use when want items collection object? give wildcard definition might use when wish put items collection? exceptions in each case?

i know extends wildcard (? extends t) should used 'get' values collection object , super wildcard (? super t) should used 'put' values collection object, exceptions?


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -