"It's true, undoubtedly true, that not everyone has been advantaged from that - in either country - and we've got to work on that", Cook said.
In his address, Cook also took a jab at Facebook's data collection scandal by saying that Apple takes a different approach when it comes to data privacy. When Cook criticized Facebook on data privacy in an interview with MSNBC last month, it prompted an uncharacteristically sharp rebuke from Facebook CEO Mark Zuckerberg.
Cook also called for increased regulation of social media and questioned whether Facebook should monetize user data on its free platforms by selling targeted ads.
"You know, I find that argument, that if you're not paying that somehow we can't care about you, to be extremely glib". While Facebook does "pay a lot of money, so does Apple".
Lars von Trier's 'disgusting' new film sparks mass walkouts at Cannes
Those who did stick it out gave the movie a six-minute long standing ovation, according to The Hollywood Reporter . Lars describes his controversial creation as celebrating "the idea that life is evil and soulless".
Cook has overseen the development of key new Apple products, like the iPhone X and Apple Watch, new services like Apple Music, and research on potential new categories like self-driving cars and augmented-reality glasses. We fail to guarantee every student the right to a good education. As for how he would handle such a privacy concern, Cook has said that such a scenario isn't possible for his company.
Cook also told the students to "be fearless" and gave recent examples of individuals who have been driven to confront the powerful force standing in the way of change.
The company caught flack when it announced in February a plan to move iCloud accounts registered in mainland China to state-run Chinese servers.
And in 2014, hackers were able to steal nude photos from celebrities' iCloud accounts. However, Apple agrees that it collects some data and doesn't fall back while taking the blame. The 57-year-old told students to be fearless like the survivors of the Parkland school shooting and activists who spoke out against the epidemic of gun violence and rallied hundreds and thousands to join their cause after a former student killed 17 people in February.