POJO:
Plain old java Object is a common java class that follows some rules like
- pojo class must be declared with public access specifier
- it must have a default constructor
- All fields or variables must be declared as private
- for each field getXXX and setXXX methods defined.
- The class that do not extends or implements some predefined classes or interfaces required by EJB framework.
- Note: but it can extend Core API classes and interfaces.
Example: