From the Super Mario Wiki
Yoshi can eat the bubbles and then spit them back out to destroy almost any enemy. He can also bounce off of them to reach greater heights, but the bubbles he touches will pop in the process. Once Yoshi blows them out he will have to lick up another to keep the weapon. The bubbles can only run out if they all pop and the Bubble Dayzee is gone.
Bubble Dayzees reappear in Yoshi's New Island. Unlike previously, Yoshi cannot grab bubbles that a Bubble Dayzee spits out.
Names in other languages