Saturday, 25 October 2014

Java beans

Java bean is reusable software component for java. We can access them using getter and setter methods.

It has default or no argument constructor. We can create a bean for a class in xml file and then use their members in java code.

See in Java spring framework we will create beans with spring inbuilt classes.

Now a days it is a good idea to create an object of a class using Java bean.

We will create Java beans in xml file.

1 comment: