do we use java bean only to restrict user?
• A Bean obtains all the benefits of Java’s “write-once, run-anywhere” paradigm. • The properties, events, and methods of a Bean that are exposed to another application can be controlled. • Auxiliary software can be provided to help configure a Bean. This software is only needed when the design-time parameters for that component are being set. It does not need to be included in the run-time environment. • The state of a Bean can be saved in persistent storage and restored at a later time. • A Bean may register to receive events from other objects and can generate events that are sent to other objects. java bean means only setter and getter method which helps to restrict user. i got 2nd point. But how can we get all others benefits which are mentioned here.