Exxon Mobil made a profit of $15.9 billion in the second quarter of 2012, the oil company said Thursday.