.
The first exoplanets discovered were orbiting a rapidly rotating neutron star formed in a supernova explosion. The first planet orbiting a sunlike planet was just as much a surprise. What was a giant planet doing so close to its star? It was a "hot Jupiter" and there have been many more since.

Hot Jupiters