Saibabaa Pragada wrote:
above method argument means that
we can pass any list that extends String but we
cannot add elements to it
Saibabaa Pragada wrote:
and above method means that we can pass list of anything that is super type of String and
we can ADD either String
or subype of String (subtype of String is not possible as it is final class)
this may be a little difficult to understand so consider following example
hope this helps
SCJP 6 [86%], OCPWCD [84%], OCEJPAD [83%]
If you find any post useful, click the "plus one" sign on the right