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

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

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

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
http://javarevisited.blogspot.com/2012/12/getter-and-setter-method-vs-public-modifier-fiel...
  • Total Hits: 19526

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 161 votes

  • Category: JAVA/Core JAVA

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

  • Submitted By: Javin Paul

  • Set as Favorite

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

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 35.4%  57
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.56%  17
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 12.42%  20
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.18%  18
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 30.43%  49

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements