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