A self-fertile variety is pollinated by its own pollen and a single tree is enough. A self-sterile, or self-incompatible, one only sets fruit if it receives pollen from another compatible variety that flowers at the same time: the ‘pollinator’.
This happens in many varieties of cherry, pear, apple and almond: if you have a single tree that flowers well but barely produces any fruit, this may be the reason. Even self-fertile varieties usually crop more heavily with another variety nearby.

