Thursday 13 March 2014

wild cards

? is called the wild card in Java. It represents unknown type. There are some situations, where programmer certainly don't know, the kind of data he is going to operate, in those situation wild cards are helpful.

The wild card can be used as a type of a parameter, local variable, fields and return types.

Prevoius                                                 Next                                                 Home

No comments:

Post a Comment