ActiveDataProvider vs ArrayDataProvider

What is difference between ActiveDataProvider and ArrayDataProvider. I can’t figure it out, could someone explain it with example?

ActiveDataProvider uses AR models to get data resulting in SQL query for current page. ArrayDataProvider takes ready to use array of data and doesn’t care about how you’re getting the data.

Thank you