What is get and set method in Java bean POJO how to use

Tutorials Shared by the Internet Community

Advertisements


Synopsis

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 kn

Statistics

  • Total Hits - 27585

  • Total Votes - 126 votes

  • Vote Up - 66 votes

  • Vote Down - 60 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2013-05-31 13:46:02

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. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements