There's some thought that bananas can absorb some of the acidity of the stomach, thereby helping an ulcer heal faster. There's also some thought that bananas contain some antibacterial properties. However, bananas should not be used as a first line treatment for an ulcer—that would be more of a complementary or alternative treatment.