Back to some Java basics...
One of the main concepts of any programming language including JAVA is re-usability. Javabeans, helps in achieving this.
Javabeans encapsulates many objects into one object which can be accessible from multiple places.
Javabeans have the following features;
- A default/no-argument constructor.
- Private properties.
- Public getters and setters.
- Should implement java.io.serializable.
- Javabeans are mutable.
Why does Javabeans have to implement java.io.serializable???
As it allows to save, store and restore the state of a Javabean that one is working on.
What is meant by 'Javabeans are Mutable'???
it can change the states and fields after the object is created.
What is meant by 'Javabeans are Mutable'???
it can change the states and fields after the object is created.

Comments
Post a Comment