Shared preferences is a way to store data in an application. Shared preferences allow you to save and retrieve data in the form of key, value pair. It is mainly used for store small data.