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
Post a Comment