I want to know why we call the bean class a “bean class”? bean class looks like a simple java class which holds the business logic in jsp file but yet we call it a bean class.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Mostly the java class and the Bean class are similar one.
In Bean class we have getter and setter methods.
Its just a naming convention.
we call it as a bean class because Java Beans follow the Bean conventions like
1.Serializable
2.Default, no-arg constructor,
4.Can use java.bean.PropertyChangeEvent to notify interested parties when values change
5.Can use java.bean.PropertyChangeListener to register for notification when a particular property changes