Is a butterfly a endoskeleton or exoskeleton?

A butterfly has an exoskeleton. The exoskeleton appears when the caterpillar undergoes the metamorphosis process. It is the pup that dissolves and becomes the exoskeleton.