The different methods are, a bladder like swimming arm bands that is filled with air from a reserve tank - this displaces the water in the dive tank and she returns to normal buoyancy, same principle but using a air canister like those used for spraying paint with an artists spray gun, and then the more common type - the syringe or WTC method, as the syringe moves back it sucks water in and fills the cavity while the air is compressed within the WTC chamber - when in reverse the water is expelled and the air reoccupies the chamber behind the syringe.
In all, like all subs keeping the water out of critical areas is the priority.