I'm confused. I've seen two different terms:
Java Beans. Is there a significant difference between them?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
People tend to casually refer to Java classes as "Java beans" in conversations and articles.
When written as one word, however, "JavaBeans" are classes conforming to a particular convention. A JavaBean is a Java Object that is serializable, has a nullary constructor, and allows access to properties using getter and setter methods. See Wikipedia's article on JavaBeans for more information.
It's also important to note the difference between a Javabean and an EJB.