JAVA Abstraction: Showing the essential and hiding the nonEssential is known as Abstraction. Encapsulation: The Wrapping up of data and functions into a single unit is known…