How are evaporation and sublimation similar?

How are evaporation and sublimation similar?