What are the different properties of a Java Bean?

Answer

There are five types of properties:

Simple property : To set a simple property, a pair of accessor, i.e. getXXX (), and mutator, i.e setXXX(), methods are employed.

Boolean Property : A simple property with boolean values – true or false – set in mutator method.

Indexed property : An indexed property when a single property can hold an array of values using public void set propertyName (propertyType[] list) method.

Bound property : A Bean that has a bound property generates an event when the property is changed. The event is of type propertychangeEvent and is sent to objects that previously registered an interest in receiving such notifications.

Constrained property : A Bean that has a constrained property generates an event when an attempt is made to change its value. The event is of type propertychangeEvent. It is sent to objects that previously registered an interest in receiving such notifications. Those other objects have the ability to veto the proposed change.

All javabeans Questions

Ask your interview questions on javabeans

Write Your comment or Questions if you want the answers on javabeans from javabeans Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---