All plants can hermie if the plant is stressed in any way.
Genetics will determine how easily a plant will hermie. Ie. How much stress it will take before throwing out ball sacks.
Some plants will hermie with just a bit of under watering, other more robust plants will take a lot of stress and...