Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 15543
Total Votes: 144 votes
Average Rating: 3.86 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.