In pea plant both male and female flowers (monoecious) are present on the same plant and are bisexual, which results in producing viable seeds after self pollination. [1]
In papaya plant, male and female flowers are present on different plants (dioecious) and plants are unisexual.
There is no pollinatoion to produce viable seeds.
As it can be just a male or just a female plant and unable to produce fruits.[1]