A Wrapper class is one whose object contains or wraps primitive data types. When we create an object for a…