Welcome to WebmasterServe!

FREE TO JOIN! Join us now to engage in informative and friendly discussions about Webmastering, SEO, SEM, Internet Marketing, Programming, Graphic Design, Online Jobs and more. What are you waiting for? Ready to join our friendly community? It takes just one minute to register.

Dismiss Notice

Join WebmasterServe Forums 
Join the discussion! Have a better idea or an opinion? It takes just one minute to register Click Here to Join

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

Discussion in 'General Programming Discussions' started by krishatg, Mar 15, 2016.

  1. krishatg

    Yellow Belt

    Joined:
    Jan 16, 2016
    Messages:
    240
    Ratings:
    +14 / -0
    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.
     

Share This Page