Does a beetle have an endoskeleton or an exoskeleton?

A beetle has a exoskeleton.