What is difference between Model Class and POJO class ? What are they exactly ? Question asked in context to android development.While extacting data from JSON what is the use of Model Class occurs?
What is difference between Model Class and POJO class ? What are they exactly ? Question asked in context to android development.While extacting data from JSON what is the use of Model Class occurs?
In simple POJO (Plain Old Java Object) is a class which has no business logic and provides Object representation without any behavior. Such objects are easy and light to transport from one layer to other layer, one process to another process even one system to another system.
So any object can be of POJO type but it is very common to have Model classes to follow these specification.