In either case, an object's axis runs through its center of mass, or barycenter. Or it could be a star with the mass of a thousand suns. The object can be a tiny particle, smaller than a single atom.
An axis is an invisible line around which an object rotates, or spins.