Here in this blog post let's get to know about some JAVA Basics.
PLAIN OLD JAVA OBJECT
commonly known as,
POJO
POJO Classes are,
NOT a fancy code, just as the name suggests it's a plain Java Class.
NOT tied to a specific framework.
It's a Java Object not bounded by any kind of restrictions or a set of rules other than the ones forced by the Java Language.
It increases readability and re-usability of a program.
Features of POJO Classes
- POJO Classes does not extend any pre-specified class.
- POJO Classes does not implement any pre-specified interface.
- Nor does it contain any pre-specified annotations.
- Usually contains only a public no-argument constructor also known as default constructor.
- Contains private data members.
- Contains public getters and setters for every member.

Comments
Post a Comment