My 2 Cents What Standard Needs To Be Followed For Designing Java Bean Classs?


Content Writer
JavaBean is nothing but the object of the classes but there are certain standards that need to followed for designing a class of such objects as:
  • All properties i.e data members should be private.
  • Non-parameterized constructor is mandatory.
  • Put class in package(not in default package)
  • Getter/ setter methods are used to access bean properties.
  • If a property has only getter methods, then that property is called read only property.