What is get and set method in Java bean POJO how to use
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 16311
Total Votes: 144 votes
Category: JAVA/Core JAVA
Submitted on: 2013-05-31 13:46:02
Submitted By: Javin Paul
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. More detail...