In the previous example, the Person class defined properties name and age, of types String and int respectively. The properties were defined by the fact that the class defined methods getName, setName, getAge, and setAge.

The JavaBeans specification details how to define properties; however, the basic rules are as follows:

Property names are case-sensitive. Thus, the entry Age=20 does not set the property Person.age.

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices