How long can solar panels last?

Answer: 
Solar panels come with warranties that last up to 20 to 25 years, more than enough time to recoup costs from the initial installation.
Question: 
How long can solar panels last?