What is the difference between a Java Bean and an instance of a normal Java class?Explain with an example, pls?
1)The java beans are serializable while class is not.
2)The bean need to follow certain conventions while class doesn't need any convention.
3)Java bean contains only setters and getters while in class, you can define constructor with arguments, methods etc.
4)A class contains a main method while a bean does not.