if your talking about those yellow sponges those things are tough i had one on a piece of rock stay out of water for 24 hours and didnt die it lived for around 1and1/2 years before my flame angel ate it
im not sure what the coral your talking about but if its one of those hard corals like a cup...