What is a Java Bean? Is it just any java class?
The answer is no!
Many people think when they say “Java Bean” they are talking about just any java class, but this is not the case. A Bean is not just any java class. Java Beans are classes that need to abide by some certain rules/conventions.
3 conventions they should satisfy can be listed as below:
1- They need to have a no-argument public constructor
2- They need to have get/set methods for their properties named according to naming conventions (getProperty, setProperty)
3- They need to be serializable
Hope this helps.