pojo in java

Solutions on MaxInterview for pojo in java by the best coders in the world

showing results for - "pojo in java"
Selena
13 Nov 2017
1It stands for Plain old Java Object 
2and basically we use it when we need to represent
3some data as Java object. So to that we need to 
4create a Java class to represent it's data.
5
6For example:
7{ "name" : "ABC",
8  "gender : "Female",
9  "phone : 1234567890 }
10  
11So we can create a java object with this
123 data and encapsulate them (name, gender, phone)
13and also we need to create constructor to
14create object easily
15
16So the idea is we want to create a class
17and eventually we want it to turn into Json file
18automatically. Without us doing anything.
Lola
21 Nov 2018
1It stands for Plain old Java Object 
2and basically we use it when we need to represent
3some data as Java object. So to that we need to 
4create a Java class to represent it's data.
5
6For example:
7{ "name" : "ABC",
8  "gender : "Female",
9  "phone : 1234567890 }
10  
11So we can create a java object with this
123 data and encapsulate them (name, gender, phone)\
13and also we need to create constructor to
14create object easily
15
16So the idea is we want to create a class
17and eventually we want it to turn into Json file
18automatically. Without us doing anything.