Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there some special meaning to the text "<? >"?

private final Class<? extends FragmentActivity> activityClass;

I understand the definition except for the <? > part.

Is there some reason for the extends to be enclosed in that special text?

like image 896
Eae Avatar asked Mar 24 '23 17:03

Eae


1 Answers

that is wild card character that says any it can take any type which extends FragmentActivity

like image 115
jmj Avatar answered Apr 04 '23 23:04

jmj