Oscar II
From 1859, when his father died, he was first in line to the Swedish throne after his oldest brother King Charles, who then had no male heirs (his son had died in infancy in 1854). His middle brother Gustaf had died in 1852.