Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 20407
Total Votes: 166 votes
Average Rating: 3.92 out of 5
Category: JAVA/Core JAVA
Description:Java beans or POJO (Plain old Java Object) uses private member fields and provides get and set method to retrieve and set values of them. These are known as getter and setters in Java. This article discusses why it's better to use getter and setter method, instead of just using public fields.